components/app: warn when username is missing for OAuth introspection

Makes things easier to debug.
This commit is contained in:
Simon Ser committed 2024-06-25 17:54:48 +02:00
1 parent f698d7a250
commit d9f7faad88
1 file changed
+3
+3
View File
@@ -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);
}