Skip to content
Snippets Groups Projects
Commit edf0d660 authored by Christian ZHENG's avatar Christian ZHENG
Browse files

fix(login): change variable name

parent 50ba15db
No related branches found
No related tags found
3 merge requests!14feat: added mounted, .bashrc, .zshrc, added tests, added keycloak tests,!8feat(extension): login, open in devcontainer, automaticly save code, open briefing, publish extension,!1fix(view): open new views as tabs + show Getting Started button by default
......@@ -33,11 +33,10 @@ export default class KeycloakOAuth2DeviceFlowConnection {
* @returns Promise
*/
public async tokenIsValid(accessToken: string) {
const url = this.userInfoUrl;
if (!accessToken) {
return Promise.resolve(false);
}
const tokenValidationRequestResponse: Response = await fetch(url, {
const tokenValidationRequestResponse: Response = await fetch(this.userInfoUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment