Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanctum Feedback #325

Open
cretueusebiu opened this issue Aug 14, 2021 · 4 comments
Open

Sanctum Feedback #325

cretueusebiu opened this issue Aug 14, 2021 · 4 comments

Comments

@cretueusebiu
Copy link
Owner

I want to replace JWT with Sanctum however it's not that straight forward...

Right now with JWT everything is stateless, meaning that you can consume any api routes from anywhere.
But moving to Sanctum some api routes don't make sense to be api routes, but rather just web routes (login, logout, ouath, verify email).
Because if use the api with a mobile application it would be stateless and would have other api routes for issuing tokens for example.

So the question is do you use the api routes for something more that just the web app ?
And does it make sense to keep the api routes with Sanctum ? Or just move everything to use the default session guard ?

@ghost
Copy link

ghost commented Oct 2, 2021

So the question is do you use the api routes for something more that just the web app ?

yes, data import / export with random apps,
and initiator may be at random side (my app or another).

@OzanKurt
Copy link

Is there a branch of your tests about this topic where we can play around and maybe help?

@unsa-cdn
Copy link

Hi, what is the state of this? I think Sanctum is a must if you plan on getting up to date with Laravel 9

@cretueusebiu
Copy link
Owner Author

@unsa-cdn Yeah.. I'll replace jwt with Sanctum very soon. I was also thinking to use Breeze maybe ? Since now it supports spa stack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants