auth-module icon indicating copy to clipboard operation
auth-module copied to clipboard

Extend existing scheme

Open duckimann opened this issue 3 years ago • 0 comments

The doc says You can create a new scheme from scratch or extend an existing scheme. here

How can i extend existing scheme in this config? And what should it look like?

{
    facebook: {
        clientId: process.env.FB_AUTH_CLIENT_ID,
        endpoints: {
            token: "/api/auth/",
            userInfo: '/api/user/'
        }
    },
    google: {
        clientId: process.env.GOOGLE_AUTH_CLIENT_ID,
        codeChallengeMethod: "",
        responseType: 'code',
        endpoints: {
            token: "/api/auth/",
            userInfo: '/api/user/'
        },
        // redirect_uri: 'http://localhost:3000/redirect'
    },
}

Note: This issue is an follow up of this one, if the solution here works, i'll close the one mentioned.

duckimann avatar Sep 25 '22 07:09 duckimann