Comments (5)
After you call await onedrive.connect(); url_launcher will redirect your user to microsoft login page. if user login success, it will redirect user to the callback schema you specified, and if you register that callback schema right, your app will be open, and token will be saved automatically into secure storage.
from flutter_onedrive.
That I understood and that's working fine as expected. I am asking how do I make sure that the token is valid without signing in again as I don't want the user to login each time before uploading a file.
from flutter_onedrive.
As long as user doesn't revoke it and refresh token is not expired, it will refresh automatically after access token expired.
from flutter_onedrive.
Yes, but is there any way to check that before calling onedrive.connect() ?
from flutter_onedrive.
Yes, but is there any way to check that before calling onedrive.connect() ?
There is a method: onedrive.isConnected(), use this with FutureBuilder to check whether access token has been saved.
from flutter_onedrive.
Related Issues (8)
- How one can get URL of uploaded file? HOT 1
- Webview does not close automatically after logging in to microsoft account HOT 1
- How to setup manifest for /common/oauth2/v2.0/authorize HOT 2
- Problem with authorization HOT 1
- Class 'AuthorizationException' has no instance getter 'expiration'. HOT 2
- Unhandled Exception: MissingPluginException(No implementation found for method getCertificate on channel com.pichillilorenzo/flutter_inappwebview_6) HOT 2
- Unable to push files via upload session HOT 1
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 flutter_onedrive.