cph-cachet / carp.sensing-flutter

CARP Mobile Sensing for Flutter, including mobile sensing framework, data backend support, and the CARP mobile sensing app.
MIT License
80 stars 28 forks source link

Allow authentication with refresh token #319

Closed LarsRefsgaard closed 1 year ago

LarsRefsgaard commented 1 year ago

From the portal we just get the access token so we need to be able to get back the current user profile using just this access token!

LarsRefsgaard commented 1 year ago

This has been updated to use the refresh token. From the dashboard we now get the refresh token, the OAuth endpoint will respond with a new OAuth token when calling with a refresh token, which can be used to fully authenticate.