I am using Keycloak as OAuth Provider coupled with Supabase. When the user logs out, weweb should not only terminate the supabase session (-> Supabase Logout Action), but also terminate the keycloak session.
This can be done by calling the OIDC Endpoint https://mydomain.com/realms/myrealm/protocol/openid-connect/logout with the query parameter ?id_token_hint (spec). For this I would need the id_token, which should be returned on login when passing openid as scope (Stackoverflow), but the token does not seem to be available in the weweb’s supabase auth object.
Is it possible to get the token? If not, could the supabase auth plugin be extended accordingly, so the token becomes available via the supabase auth object to logout from the (keycloak) oauth session seamlessly?