DEV Community

Discussion on: PKCE authenticaton for Nuxt SPA with Laravel as backend

Collapse
davestewart profile image
Dave Stewart

Question: we actually DON'T want the user to be stored in the session - because we want the login prompt to be shown each time the user hits oauth/authorize in the client... is this an option?

Collapse
stefant123 profile image
StefanT123 Author

TBH I don't know really, but I guess you could do something like this. For example, when the user hits oauth/authorize you can run some middleware that would delete the session for that user, and the login prompt would be shown. Maybe this is the way you could do it, but then again I'm not sure if this would work and why would you want this.