Skip to content

Authentication through supabase.auth.signInWithIdToken() is not working. #1358

@ganer9r

Description

@ganer9r

Bug report

When using Supabase authentication, currently only browser login is provided, which is inconvenient in terms of usability.
I am trying to register using a custom token.

I am currently using Kakao login and attempted to log in using supabase.auth.signInWithIdToken() with a token obtained directly through app login.

I encountered the following error:
"error: AuthApiError: Custom OIDC provider "" not allowed"

For other providers like Google and Facebook, the error appears as follows:
"error: AuthApiError: Provider (issuer "https://www.facebook.com") is not enabled"

It seems that custom tokens are not supported, as seen here:
https://github.com/supabase/gotrue/blob/93e5f82ced83c08799ce99020be9dea82fc56d24/internal/api/token_oidc.go#L76

Considering the setting of for _, allowedIssuer := range config.External.AllowedIdTokenIssuers, I wonder if this might be a bug.

Is the inability to use supabase.auth.signInWithIdToken() with certain providers a bug or a planned feature?
How can I log in using signInWithIdToken?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions