You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, great flutter demo with OAuth2 with ThingsBoard - finally found a sample that actually works! Question more than anything - how is Logout supposed to work? Right now it deletes the refresh token and JWT token, but when you click Login again with the Auth0 link (containing the sign-in page), it re-logs me in using previous credentials. I was expecting a logout that forces the user to sign in again or change credentials. How do you envision that to work? Was that the intention of Logout? Maybe we need PR that does both? Or maybe that's a setting in Auth0 or ThingsBoard connections?
thanks - great demo! Below is the code snippet
Hi, great flutter demo with OAuth2 with ThingsBoard - finally found a sample that actually works! Question more than anything - how is Logout supposed to work? Right now it deletes the refresh token and JWT token, but when you click Login again with the Auth0 link (containing the sign-in page), it re-logs me in using previous credentials. I was expecting a logout that forces the user to sign in again or change credentials. How do you envision that to work? Was that the intention of Logout? Maybe we need PR that does both? Or maybe that's a setting in Auth0 or ThingsBoard connections?
thanks - great demo! Below is the code snippet
tbClient.logout();
Future logout({RequestConfig? requestConfig}) async {
try {
await post('/api/auth/logout',
options: defaultHttpOptionsFromConfig(requestConfig));
await _clearJwtToken();
} catch (e) {
await _clearJwtToken();
}
}
The text was updated successfully, but these errors were encountered: