Setting a cookie after sign in

Hi

I am following the following to set up authentication Vue.js Authentication By Example: Composition API

I would like to set a cookie with organisation id for the signed in user that I would like to use across the app. I am new to Vue 3 and Auth 0.

How can I check if the user has signed in after login button is clicked so that I can set a cookie when a user has successfully signed in after clicking the login button?

I am not managing organisations in Auth0 at the moment. I have a table in my database and intend to use that instead.

Any guidance would be appreciated.

Thanks
Vivek

Hi @viveknz76,

Thanks for the question.

Have you tried the checkSession method on the Auth0 Vue SDK? It sounds like it may provide the functionality you are looking for. Here’s the doc for it:

Hope this helps!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.