mardi 17 avril 2018

Where does Laravel passport store access_token?

I'm new in Laravel Passport.

Recently, I used the Password Ltbrary for RestApi authentication, everything works perfectly.

But when I looked at the database, I found that in table oauth_access_tokens, it creates new token id if user re-login (with same user_id, client_id, scopes), something likes: enter image description here

I want if same client_id already exists inthe oauth_access_token table then update the entry

otherwise insert a new entry. Main issue is bulk of entry can increase database size issue.

The other question is, where does Laravel store access_token? I found all tables, but just find token_id in table oauth_access_tokens? How the passport check authentication?

Thank you



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire