Node.js Cookies

I think is a very basic question, but I’ve followed the quick start guide and been able to implement the Okta sign-in page. Now when login is success, Okta creates a cookie and redirects to the redirect_url (this is fine)

My question is: what Im I supposed to do with the cookie and how should I use it to retrieve loged user data (like the name) .

Didn’t find any documentation for that, regards!

well, cookie is not reflecting anything besides the fact that you have an okta session. But you can use it to do a call to /api/v1/users/me (https://developer.okta.com/docs/reference/api/users/#get-current-user) to get the information about the logged in user

1 Like

thanks! It’s just what I was looking for.

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