Hi all! Anyone else have trouble with Twitter OAur...
# off-topic
t
Hi all! Anyone else have trouble with Twitter OAurh? I've try all but can't figure out why it returns me always
Copy code
no route matches with those value
on
Copy code
auth.signin() provider twitter
...but.....which value? I'm not able to understand also from request headers etc... Where this routes have problems. I've try OAuth2.0 an OAuth1.0
s
Can you provide more context please? we need to see more code to understand what you are trying in order to get to this message.
t
Yes I've put all in this issue. Thanks! 🦾🦾
I've update the issue with code snippets and http request parameter
s
Ok thanks
t
Thanks to you or to who ever can help me understand
m
Just ran into the same issue now, will let you know if I figure it out
Problem solved... It's because we were using the wrong keys
When you sign up for a twitter dev account, they now give you an "API Key", an "API Key Secret", and a "Bearer Token" right away
The API Key and the API Key Secret are the keys you should use.
It's confusing because when you enable OAuth in the twitter dev portal, it gives you additional keys named "Client ID" and "Client Secret" but those are are not the right keys to use with Supabase apparently
t
Yes yes, I use bearer token for API request
api key to fill client id on supabase
An API key secret as key on supabase
(to enable supabase OAurh Twitter)
But it still send me that message
Maybe because I'm on local environment? And the app run from localhost?
I have track down the request flow on browser when call client.auth.signIn() 1.
Copy code
GET https://supabase_app_url.supabase.co/auth/v1/authorize?provider=twitter
1.1 This request return a 302(Found) 1.2 For what I have understand this is a request to cloudflare 2.
Copy code
GET https://supabase_app_url.supabase.co/
2.1 This, obviously, return a 404(Not Found) 2.2
Copy code
{message: No Routes matched with those value}
Maybe I can debug this or at least investigate by my self and help others but I'm not able to find the signIn/signOut operation on the supabase/supabase-js repo on github. If someone know where I can find the auth function let me know and I can investigate for everybody
Found that the problem was with Twitter API that doesn't support
Copy code
http://localhost:xxx
In case someone need to know how to use Twitter OAuth API on local enviroment for development purpose, refer to the closing comment of this issue https://github.com/supabase/supabase-js/issues/354#Fixed