Why does the gotrue endpoint callback return the auth as a fragment?

I'm currently trying to extend the supabase-gotrue-kt library to handle provider login.
With Email login I can login server side and then create a cookie which I can check in an Interceptor Server Side.

When logging in with google I don't get a set cookie response header from the supabase server, I just get the url with the jwt stored as server fragment like described here:
https://supabase.com/docs/gotrue/server/about#get-callback

In the dart client the library replaces the fragment with a parameter:
https://github.com/supabase-community/gotrue-dart/blob/bc11143021da59aedd4fc106366afef358d01433/lib/src/gotrue_client.dart#L202

I would like to have access to this fragment server side so I can set a Cookie for the jwt.
https://github.com/supabase-community/gotrue-kt

Can supabase make this configurable so I get parameter and not fragments returned?
GitHub
Kotlin Client for GoTrue API. Contribute to supabase-community/gotrue-kt development by creating an account on GitHub.
GitHub
A dart client library for GoTrue. Contribute to supabase-community/gotrue-dart development by creating an account on GitHub.
An SWT based API for managing users and issuing SWT tokens
Was this page helpful?