nhost-dart
nhost-dart copied to clipboard
Add support for Nhost v2
Beta is out the door. Work remaining:
- [ ] Evaluate the need for _loading in AuthService
- [x] Add missing sign in methods
- [ ] Review backend endpoint by endpoint, ensuring we have support
- [x] Resend e-mail verification process/e-mail
Not quite ready to close yet.
Just published #50 to pub
. Here are the new versions:
nhost_sdk 3.0.0-beta.0
nhost_gql_links 2.0.0-beta.0
nhost_flutter_auth 2.0.0-beta.0
nhost_graphql_adapter 2.0.0-beta.0
nhost_flutter_graphql 2.0.0-beta.0
This is still a work in progress, but I'm going to be knocking off what's missing over the coming days, and continue to cut beta releases as I do so.
New set of packages out the door, including the changes in #57 and #58.
nhost_sdk 3.0.0-beta.1
nhost_gql_links 2.0.0-beta.1
nhost_flutter_auth 2.0.0-beta.1
nhost_graphql_adapter 2.0.0-beta.1
nhost_flutter_graphql 2.0.0-beta.1
Hi @shyndman, Johan said that V2 will offer an endpoint to retrieve the e-mail verification process/e-mail, is that already covered within the new sdk as method? Thanks!
Hey @MaxSchilling,
It is not. Let me take a look at getting this in.
To be clear, you're looking to retrieve the text of the verification email?
If you're looking for the ticket used to verify the email address, it's stored in the auth.users
table, and can be accessed via gql. Keep in mind that the permissions will have to be set up appropriately to modify view/modify the value.
Hey Scott, no actually a method to re-trigger the actual email-verification mail from the server, as the account activation ticket (that is created on registration) expires after 60 minutes. As I understood Johan in V2 there is a way/endpoint to retrigger the token and trigger the activation mail for the user again. This wasn't possible in v1 and we lost quite some users through missing that functionality / not activating within 60 minuted.
So would be great to provide that functionality.
Bonus would be if the authenticationState could reflect wether the user activated the account yet, would make the routing easier to route to a re-send verification screen / functionality.
Got it.
@elitan, which endpoint is @MaxSchilling referring to?
@shyndman This one: https://github.com/nhost/nhost/blob/main/packages/hasura-auth-js/src/hasura-auth-api.ts#L149
Thanks! Got that in.
I'm publishing a new set of packages now. Here are the versions:
nhost_sdk 3.0.0-beta.3
nhost_flutter_auth 2.0.0-beta.3
nhost_gql_links 2.0.0-beta.3
nhost_graphql_adapter 2.0.0-beta.3
nhost_flutter_graphql 2.0.0-beta.3
Packages are now graduated to stable:
nhost_sdk 3.0.0
nhost_gql_links 2.0.0
nhost_graphql_adapter 2.0.0
nhost_flutter_auth 2.0.0
nhost_flutter_graphql 2.0.0
Evaluate the need for _loading in Auth~Service~Client
I just did a quick search on the auth_client.dart file and the _loading
flag is never set to true.
Thus, the authentication state inProgress
is never returned.