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

Config issue sharing session between web and api #34

Closed
modstore opened this issue Jan 12, 2020 · 2 comments
Closed

Config issue sharing session between web and api #34

modstore opened this issue Jan 12, 2020 · 2 comments

Comments

@modstore
Copy link

Because there's no auth scaffolding to use this at the moment (that I know of anyway), I just left the auth using the standard auth scaffolding.

I ended up having an issue using the session after logging in using the web guard because of my session driver config, it was set to "file" in my .env. I realised that it's set to "cookie" in the Airlock middleware, so once I changed that to match in my .env all was good. But it could be helpful to have a note about this.

@driesvints
Copy link
Member

Airlock is meant for SPA's and apis and not meant for web based apps. If you need authentication for web based apps, consider using Passport: https://github.com/laravel/passport

@modstore
Copy link
Author

The rest of my app is SPA, I just left the auth part on the standard web auth scaffolding just to get it going quickly. But no worries if you don't think it's something worth noting.

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

2 participants