#Is the OAuth Token A JWT?

1 messages · Page 1 of 1 (latest)

wind walrus
#

I have succesfully set up OAuth with a custom Clerk.dev OAuth.

I can sign in and authenticate but I cant validate the token on my server. The validation code on my server was working fine for other calls witht he clerk token.

On inspection, the token sent by OpenAI doesn't appear to be a full JWT as it doesn't have the "." seperated parts.

What is the token being returned here? Is it JWT or is it something else. How would I validate it on the server.

dark hamlet
#

we're going to need a little bit more context here. Is this for a custom GPT?

wind walrus
#

Yeah it’s for a custom GPT.

#

@dark hamlet clerk responded with this

#

If you're using Clerk as a OAuth Provider/IDP you are getting just a general token back and not a JWT. Clerk as IDP doesn't create JWTs, and it doesn't handle auth status.