Comments (8)
Hi,
I have updated all examples ready on this PR #95
We are activity working to improve the SDK. stay tuned.
from nhost-dart.
Yes, I am working on it. I think we will make it in the next major release two.
from nhost-dart.
There also seems to be a mismatch between the expected query parameter name (refresh_token
) and the actual parameter name used by NHost callback (refreshToken
)
EDIT: here is a workaround for now
if (uri.queryParameters.containsKey('refreshToken')) {
Map<String, String> params = {};
params.addAll(uri.queryParameters);
params['refresh_token'] = uri.queryParameters['refreshToken']!;
client.auth
.completeOAuthProviderSignIn(uri.replace(queryParameters: params));
} else {
client.auth.completeOAuthProviderSignIn(uri);
}
from nhost-dart.
Hi, thank you very much for your work!
Will this improvements include the migration from the old backend URL discussed in the link below?
from nhost-dart.
@diegonc Check this out nhost_sdk: ^4.0.0-dev.8
or this link for supporting subdomain and region.
from nhost-dart.
Unfortunately, using launchUrl
with Facebook would block me from authenticating because of Embedded browser security check from Facebook.
Found a workaround to authenticate with OAuth in Flutter though.
- Use this package https://pub.dev/packages/oauth_webauth specifically the BaseWebView widget
- add
initialUrl
with '${createNhostServiceEndpoint(subdomain: YOUR_SUBDOMAIN, region: YOUR_REGION, service: 'auth')}/signin/provider/facebook' - add
redirectUrls
with your callback URL (https://xxxxxx.auth.YOUR_REGION.nhost.run/v1/signin/provider/facebook/callback)
After successful auth, should return with the callback?code=
from nhost-dart.
The example now has updated URLs but still doesn't work because it refers to success/failure callback settings, which do not seem to be supported. Is there an updated suggestion for how to implement?
from nhost-dart.
because it refers to success/failure callback settings
that part is incorrect, there is no success/failure URLs in hasura-auth, instead, if there is an error, the callback url will include an error query arg describing the issue
from nhost-dart.
Related Issues (20)
- How to save login status? When I log in and restart the application, the login status disappears HOT 3
- localhost (10.0.2.2) not working for Android emulators HOT 2
- Bump dependencies versions
- Dart client should accept/prefer "local" as subdomain for local-cli development now that localhost is deprecated HOT 8
- auth url incorrect HOT 2
- http can not be updated because of the 'betamax' package HOT 6
- OAuth redirect URI mismatch HOT 7
- Fix CI
- Upgrading to Dart 3 and Flutter 3.10 HOT 1
- Nhost gql link uses websocketlink incorrectly for queries that appear in a document that also has subscriptions
- [nhost_graphql_adapter] bump http ^0.13.5 dependency HOT 1
- No clear way to provide the admin-token HOT 1
- remove backendUrl
- New Flutter 3.16.0 includes Dart 3.2.0 and nhost_dart is not compatible HOT 1
- How to choose user role when doing a request? HOT 2
- nhost_dart 2.0 and nhost_graphql_adapter 4.0 are not compatible HOT 2
- dependencies issue HOT 5
- How to use Hasura GQL subscription query? HOT 1
- Run gql query from flutter tests without mocking
- storage function uploadBytes requires "name", but the column is nullable HOT 3
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 nhost-dart.