4 months ago

Laravel Sanctum SPA-How to add Vue Router Guard

Posted 4 months ago by Corvin

Hi everyone, how can I add an authentication guard to my vue router using Laravel Sanctum SPA? I know that for API token, simply returning the token and assigning the token to vuex state will enable access to guarded routes (like JWT), but how I do this on SPA Authentication?

Please sign in or create an account to participate in this conversation.