supabase-community / supabase-csharp

A C# Client library for Supabase
https://github.com/supabase-community/supabase-csharp/wiki
MIT License
499 stars 50 forks source link

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

Closed jeyjeycodes closed 3 years ago

jeyjeycodes commented 3 years ago

https://github.com/supabase/supabase-csharp/blob/98ef31fa35aebcec97c8847737f3ff552e56ef68/Supabase/Client.cs#L142

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.

acupofjose commented 3 years ago

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

jeyjeycodes commented 3 years ago

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

acupofjose commented 3 years ago

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

jeyjeycodes commented 3 years ago

You are a LEGEND! Thank you!