php - Manually change the token generated by Laravel -


i have laravel+passport working fine app(mobile+website). oauth authentication , access_token. however, want use fcm(firebase cloud message) send push notification. , fcm have own token or either own way generate token.

i'm thinking in instead of generate fcm token in device , send server , have separate table connect user token (one user can access using different devices, means purposely want have more 1 token per user), generate customtoken in server , use 1 laravel+passport token , device needs register using token.

so, question be:

  • how can change way passport toke generated in server? need change in vendor folder?

    or

  • if not correct option above, thinking in authenticate user , send passport token, in device request fcm token , resend, using passport token validate request new token. how can manually change token generated 1 received client?

thanks, joao


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -