Skip to content

Is it possible to pass in our own authorisation bearer token #5

Closed

Description

@jeyjeycodes

var bearer = Auth?.CurrentSession?.AccessToken != null ? Auth.CurrentSession.AccessToken : SupabaseKey;

I want to be able to pass my token like so:

Screenshot 2021-06-01 at 21 17 05

But it is being overwritten by the fact that it checks only if there is a current session which I can't create without using the sign in method.

Activity

  1. acupofjose commented on Jun 1, 2021

    @acupofjose
    Contributor

    So you're getting an access_token without using the Supabase.Auth calls?

  2. jeyjeycodes commented on Jun 1, 2021

    @jeyjeycodes
    Author

    So you're getting an access_token without using the Supabase.Auth calls?

    Exactly! I get it from a mobile app and web app. It works better with out flows and I was wondering if I can create a session just from a token if possible. I have an idea how it is meant to work

  3. acupofjose commented on Jun 1, 2021

    @acupofjose
    Contributor

    Available in v0.1.6-prerelease you should see it hit NuGet in the next 15-20 minutes or so! Thanks for the request!

  4. added
    feature
    on Jun 1, 2021
  5. jeyjeycodes commented on Jun 1, 2021

    @jeyjeycodes
    Author

    You are a LEGEND! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions