How do I create a custom refresh token

I know that I can create custom access tokens using the JWT Secret provided by supabase, but I want to create a custom refresh token as well for use with supabase.auth.setSession.

The refresh token doesn't look like a JWT token, but some kind of custom string.

I found some code to create it in supabase/gotrue (https://github.com/supabase/gotrue/blob/master/models/refresh_token.go#L101), but I can't seem to understand it.

Please can someone help me?
GitHub
A JWT based API for managing users and issuing JWT tokens - gotrue/refresh_token.go at master · supabase/gotrue
Was this page helpful?