K
Kinde3d ago
cspok

Kinde with Nuxt & Supabase

Hi, I was able to setup Kinde with my Nuxt project. However, I am having difficulty getting the access token to send it to Supabase, my backend. Since I am not using SSR, I am not sure what the correct mechanism is. Any help is appreciated. Thanks
3 Replies
TotalScrub
TotalScrub3d ago
Hey cspok. I'm using Nuxt, but I am using SSR and sending the access token to my .NET backend. I'm also more of a .NET developer so this is my first time using Nuxt. I do not believe you can get the access token on the client. The cookie that Kinde uses is HTTP only, and looking at both their documentation and code it doesn't look like it is accessible anywhere client side. Which makes sense from a security standpoint. Looking at their docs I would say the intention is for the Nuxt SDK to be used on the backend. https://docs.kinde.com/developer-tools/about/our-sdks/ You'll probably need to use one of their frontend SDKs to do auth so that the frontend can access the auth token using one of the less secure OAuth 2.0 flows. (IIRC the backend uses code flow)
Kinde docs
Kinde SDKs
Our developer tools provide everything you need to get started with Kinde.
TotalScrub
TotalScrub3d ago
You can access certain details that come through from Nuxt (server) on the client like whether or not the user is authenticated and their basic profile information (name, avatar, etc) though.
cspok
cspokOP3d ago
Thanks @Stephen . Appreciate the response.

Did you find this page helpful?