mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
components/app: warn when username is missing for OAuth introspection
Makes things easier to debug.
This commit is contained in:
parent
f698d7a250
commit
d9f7faad88
1 changed files with 3 additions and 0 deletions
|
@ -437,6 +437,9 @@ export default class App extends Component {
|
|||
clientSecret: this.config.oauth2.client_secret,
|
||||
});
|
||||
username = data.username;
|
||||
if (!username) {
|
||||
console.warn("Username missing from OAuth 2.0 token introspection response");
|
||||
}
|
||||
} catch (err) {
|
||||
console.warn("Failed to introspect OAuth 2.0 token:", err);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue