generate session on supabase edge

I'd like to generate a session jwt and pass it to my clients using a custom auth scheme.

The tokens I'm able to generate are rejected on the client when I call setSession saying that the session isn't set:
AuthSessionMissingError: Auth session missing!

What should I put in the token to assuage this error?
Was this page helpful?