Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Error on Authentication #97

Open
rajnish93 opened this issue Jan 4, 2023 · 5 comments
Open

Server Error on Authentication #97

rajnish93 opened this issue Jan 4, 2023 · 5 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@rajnish93
Copy link

image
I am getting above error on signin.
I am using nhost_sdk: ^3.0.0.

@mhadaily mhadaily added the documentation Improvements or additions to documentation label Jan 11, 2023
@mhadaily mhadaily self-assigned this Jan 11, 2023
@mhadaily
Copy link
Contributor

mhadaily commented Jan 11, 2023

You cannot use subdomain URLs with the older SDK versions; it's now supported in the new version, but it's not stable yet; however, it's a release candidate that we may release it very soon.

Check this out nhost_sdk: ^4.0.0-dev.7 or this link

If you install version 4.0.0-dev.6 you should do this instead

final client = NhostClient(subdomain: 'qtytsmqhoundvrsxxznl', region: 'ap-south-1');

Alternatively, in version 3.0.0 that you are using, you can change backendURL to

backendUrl: https://qtytsmqhoundvrsxxznl.nhost.app

This should work.

@rajnish93
Copy link
Author

how do I modify default signIn and singOut url this case as it is taking default one @mhadaily

@mhadaily
Copy link
Contributor

I am not sure what you mean SignIn, SignOut Url, do you mean the endpoint for Nhost? if so, you are not supposed to change that, the endpoint is handled in the SDK. if I misunderstood, please elaborate more. I am happy to help.

@rajnish93
Copy link
Author

yes SDK endpoints with custom endpoints @mhadaily Is there other package in flutter to handle authentication and authorization apart from firebase_auth as Nhost does not allow to modify endpoints

@mhadaily
Copy link
Contributor

I need some help here. What Nhost_auth is doing here is very similar to firebase_auth in fact. If you call signInWithPassword method in Nhost_SDK you are not supposed to change the endpoint API! That will be handled by the SDK. however, you can change subdomain and region which you can get from Nhost dashboard for your project. and that makes the baseURL for your endpoint.

You can have federated authentication such as Google or Facebook or etc too in Nhost and Dart SDK support that now.

if you still are missing anything here, can you please give me an example on what you want to achieve that you cannot at the moment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants