M
M
Maxim Pritchin2019-09-30 22:13:31
Laravel
Maxim Pritchin, 2019-09-30 22:13:31

How to make 2 tokens in Laravel Passport?

The project has two zones roughly client and server
How to make it more correct and concise to generate one token for access to the client API and another token to access the server part.
The meaning is approximately similar to that of VKontakte, i.e. a token for the user and the community, while I would like to have OAuth 2 in the form of Laravel Passport

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2019-09-30
@JhaoDa

Create two different passport clients of the required type.
PS Someone stole almost all the punctuation marks from your question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question