passport-multiauth icon indicating copy to clipboard operation
passport-multiauth copied to clipboard

How to make password grant token to get access token and refresh token with multiple providers

Open hosseinkaramii opened this issue 5 years ago • 3 comments

Hi. I use this package and works great! but Imagine that I want to sign in with google Auth and check if user exists, make new access token and refresh token for user without requesting to /oauth/token route. can anyone help me solve my issue considering that we have multiple providers? Hope Someone solve this. Thanks alot.

hosseinkaramii avatar Apr 20 '19 16:04 hosseinkaramii

@hkarami1811 you can use personal access tokens. https://github.com/sfelix-martins/passport-multiauth/blob/4.0/README.md#personal-access-tokens

sfelix-martins avatar Apr 21 '19 02:04 sfelix-martins

yeah I can use personal access tokens, but i need to get refresh token too. any ideas on how to implement?

hosseinkaramii avatar Apr 21 '19 08:04 hosseinkaramii

I think like the following response https://stackoverflow.com/questions/48755410/how-to-refresh-personal-access-token-programmatically-in-laravel

sfelix-martins avatar Apr 23 '19 14:04 sfelix-martins