V
V
Vlad Volodko2019-09-26 14:29:03
Laravel
Vlad Volodko, 2019-09-26 14:29:03

How to give access to your API from a third-party site?

Hello. Interested in such a question as to provide another site with access to my API. I mean, there are 3 sites (Site 1, Site 2, Site 3), I want them to use my functionality on their site. But I don't fully understand how to implement it. Laravel has personal tokens ( https://laravel.com/docs/5.5/passport#personal-acc... and here are a couple of questions, how do I store them in the database? And how do I create it for each site?
I understood correctly What then
does Site 1 send this token in the header when accessing my API?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
coderisimo, 2019-09-26
@coderisimo

that's what JWT life-giving does!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question