Skip to content

When SUPABASE_URL has a trailing slash, authentication with the Auth component does not work #261

@rodjoseph

Description

@rodjoseph

Bug report

Describe the bug

When SUPABASE_URL has a trailing slash, authentication with the Auth component leads to a page that is not found

To Reproduce

Initialize a client with a URL with a trailing slash, e.g. "'https://xxxxxxxxxxxx.supabase.co/'

You are brought to 'https://xxxxxxxxxxx.supabase.co//rest/v1....' when trying to log in with Github, Google, etc.

Expected behavior

You should be brought to 'https://xxxxxxxxxxx.supabase.co/rest/v1....'.

Should just be able to take the trailing slash out from a URL if applicable. I can do a fix if it is indeed having this behavior for others. It might not be (I'm using GitPod currently). I'd be happy to look at it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions