Comments (4)
What is your question?
I'm using GoTrue to build authentication in my app. After signing up, I use goTrue.loginWith(Email) and got an exception. Did I miss any configuration? Here's the message I got:
invalid_grant URL: https://jzdduyzfelmfniuebkre.supabase.co/auth/v1/token?grant_type=password&redirect_to=supabase%3A%2F%2Flogin Headers: [apikey=[eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imp6ZGR1eXpmZWxtZm5pdWVia3JlIiwicm9sZSI6ImFub24iLCJpYXQiOjE2ODA2OTUwODMsImV4cCI6MTk5NjI3MTA4M30.Eo29b7weMkAOucfGa0eRbb7fZR7Cpw1_Ifde_FV3zGc], Accept=[application/json], Accept-Charset=[UTF-8]] Http Method: POST
How I provide GoTrue:
createSupabaseClient( supabaseUrl = BuildConfig.SUPABASE_URL, supabaseKey = BuildConfig.API_KEY ) { install(GoTrue) }.gotrueHow I call signin (authService has type of GoTrue):
authService.loginWith(Email) { this.email = email this.password = password }
Could also be that the user didn't confirm their email, gonna include that error in the next version
from supabase-kt.
If you want to disable that the user has to confirm their email, disable it in supabase. Otherwise you can setup deeplinking so the user can login directly into your app by clicking on the link in the verification (see wiki for login)
from supabase-kt.
That looks alright, is that the whole error? And also are the credentials valid?
from supabase-kt.
Strange.
What is your question?
I'm using GoTrue to build authentication in my app. After signing up, I use goTrue.loginWith(Email) and got an exception. Did I miss any configuration? Here's the message I got:
invalid_grant URL: https://jzdduyzfelmfniuebkre.supabase.co/auth/v1/token?grant_type=password&redirect_to=supabase%3A%2F%2Flogin Headers: [apikey=[eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imp6ZGR1eXpmZWxtZm5pdWVia3JlIiwicm9sZSI6ImFub24iLCJpYXQiOjE2ODA2OTUwODMsImV4cCI6MTk5NjI3MTA4M30.Eo29b7weMkAOucfGa0eRbb7fZR7Cpw1_Ifde_FV3zGc], Accept=[application/json], Accept-Charset=[UTF-8]] Http Method: POST
How I provide GoTrue:
createSupabaseClient( supabaseUrl = BuildConfig.SUPABASE_URL, supabaseKey = BuildConfig.API_KEY ) { install(GoTrue) }.gotrueHow I call signin (authService has type of GoTrue):
authService.loginWith(Email) { this.email = email this.password = password }Could also be that the user didn't confirm their email, gonna include that error in the next version
Just tried and it works now. This is mostly because of the account is not verified yet and it's not existed. Thanks for the improvement on the exception message. Appreciate that mate ! 🤜🤛
from supabase-kt.
Related Issues (20)
- [Question]: GoTrueMock for testing implementation HOT 3
- [Question]: How to clear user cache when user doesn't exist anymore ? HOT 2
- How do I get a table from a foreign key using kotlin HOT 2
- [Feature request]: Migrate to Amper Build Tool
- [Question]: Sessionless usage of GoTrue for authentication HOT 1
- [Feature request]: Easier way to listen to DB tables HOT 22
- [Bug]: Upload a file from Uri on Android crashes since 2.X versions HOT 1
- [Question]: How to fetch a foreign table residing in a different schema HOT 6
- [Question]: How to disable logger for release build ? HOT 2
- [Bug]: Documentation update for retrieving data as CSV HOT 2
- [Bug]: ComposeAuth Google Sign In is triggering automatically on Android HOT 6
- [Bug]: Full text search returns error when following docs HOT 6
- The correct way to perform a full Text Search in Kotlin[Question]: HOT 1
- [Question]: How can I know if the user i'm trying to sign up already exist ? HOT 8
- [Bug]: JS hash url parsing fails in GoTrue HOT 1
- [Feature request]: Provide modules for integrating Supabase Auth into a custom backend HOT 10
- [Question]: I'm having a problem with populating data after migrating to 2.0 HOT 9
- [Feature request]: Expand Coil support to multiplatform HOT 1
- [Bug]: Logging in via Google as banned user results in a crash HOT 5
- [Bug]: Nesting two `and`s inside an `or` filter causes only the first `and` to be evaluated HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supabase-kt.