Next Auth - Custom Oauth Provider.
Unanswered
Velvet ant posted this in #help-forum
Velvet antOP
Hello, I'm trying to create a custom oAuth provider in next auth for my laravel passport API. As i couldnt find a lot of information regarding this topic i was hoping to find some help here.
This is what i have as a provider:
I'm currently receiving an invalid client response in my api because i dont know how to specify the grant type.
This is what i have as a provider:
{
id: 'oauth-login',
name: 'oAuth-Login',
type: 'oauth',
clientId: 'ID',
clientSecret: 'SECRET',
authorization: {
url: `http://p2p.localhost/oauth/authorize`,
params: { scope: ""}
},
token: `http://p2p.localhost/oauth/token`,
userinfo: 'http://p2p.localhost/api/auth/user',
profile(profile) {
return {
};
},
}I'm currently receiving an invalid client response in my api because i dont know how to specify the grant type.