DEV Community

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

Collapse
 
stefant123 profile image
StefanT123

I assume that you are talking about client_id? Or am I wrong?

Collapse
 
eserenna profile image
eserenna

Which user ID should the client be assigned to? -> 1

Thread Thread
 
stefant123 profile image
StefanT123

you can put any id there

Thread Thread
 
eserenna profile image
eserenna

Ya. So that client_id only belong to user_id 1 am i right? So for each user need to create 1 client_id for this pkce thing?

Thread Thread
 
stefant123 profile image
StefanT123

no, you will need just one client

Thread Thread
 
eserenna profile image
eserenna

So in db there is user_id 1. That part will be ignored by laravel?

Thread Thread
 
eserenna profile image
eserenna

how do i login with pkce to user_id 2?

Thread Thread
 
stefant123 profile image
StefanT123

the login flow is the same for every user