Rank 2: Process
Ok
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
Ok
Rank 2: Process
Here is the function for authorization via OAuth2
Rank 7: Quantum Computer
It's seem like the value of jetservice_server is not the same is the value you've entered when you initialized your client
Is this how your client creation looks?
Client client = Client() .setEndpoint('https://localhost/v1') // Your Appwrite Endpoint .setProject('jetservice_server');Rank 2: Process
Rank 2: Process
But registration via email. works.
Rank 7: Quantum Computer
Try to run it as follow
account.createOAuth2Session( provider: 'google', success: 'appwrite-callback-jetservice_server://', failure: 'appwrite-callback-jetservice_server://', )Rank 7: Quantum Computer
I think that because you're using a service container the createOAuth2Session is unable to get your project id to created the success and failure urls
Rank 2: Process
OK thanks! I'm going to try now
Rank 2: Process
There is no change. Same error
Rank 7: Quantum Computer
OK, I've found the issue your project ID can't contain the underscore _ character if you want to use OAuth2
You can use the dash - if you want
That mean you'll have to recreate the project or rename it thorough direct access to the MariaDB
You can see more details here
https://github.com/ThexXTURBOXx/flutter_web_auth_2#troubleshooting-callbackurlscheme
This is the package on which the OAuth2 login is running on
Rank 2: Process
How to rename a project via MariDB? Is it possible to rename a project via env file? Because this project has already started. We just wanted to add Google and Apple authentication.
Rank 7: Quantum Computer
It's a bit complex matter
You'll have to tunnel to your MariaDB server using something like DataGrip you can see some details here
https://discord.com/channels/564160730845151244/1088290647036923976/1088292555688530010
Be sure to backup everything before performing any action.
The changes will require you to change the project id in many places in the database
I do recommend to check building some utility and copy all the data to a newly created project
Rank 2: Process
Or can it be renamed via docker-compose.yml?
Rank 7: Quantum Computer
No, This data is only in the database
Rank 2: Process
I can't even create a new project. I wanted to create a new project in parallel and copy the entire collection from there. Interesting
Rank 7: Quantum Computer
Weird
Rank 2: Process
Updated the latest version more precisely to version 1.2. On the previous version, I tried to create two or more projects, and everything worked without problems? A new problem has been discovered that should solve it. What a pity
Rank 2: Process
rolled back to version 1.0.3. And in parallel the second project was created
Moderator
It seems to be more a server-side problem. Maybe the server instance got corrupted
Admin
Did you upgrade to 1.1.x, run the migrate commanf and then upgrade to 1.2.x and run the migrate command again?
Rank 2: Process
No I didn't do that
Rank 2: Process
I immediately updated the version from 1.03 to 1.2. And then did the migration
Admin
that's probably why you got the error then
Rank 2: Process
And how to update the phone number without a password after logging in via OAuth2? Or is a password required?
Admin
https://appwrite.io/docs/client/account?sdk=web-default#accountUpdatePassword. If you still need help, feel free to create a new #channel post