Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Dec 17, 2024
1 parent 9014b04 commit dc01dce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mocks/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const AUTH_URL = new URL(CONFIG.auth_url, BASE_URL).href + '/';
const LOGIN_URL = new URL('rpc/login', AUTH_URL).href;
const LOGOUT_URL = new URL('rpc/logout', AUTH_URL).href;
const TOTP_TOKEN_URL = new URL('totp-token', AUTH_URL).href;
const TOTP_VALIDATON_URL = new URL('rpc/verify-totp', AUTH_URL).href;
const TOTP_VALIDATION_URL = new URL('rpc/verify-totp', AUTH_URL).href;
const USERS_URL = new URL('users', AUTH_URL).href;
const OIDC_AUTHORITY_URL = CONFIG.oidc_authority_url;
const OIDC_CONFIG_PATH = '.well-known/openid-configuration';
Expand Down Expand Up @@ -172,7 +172,7 @@ export const handlers = [
/**
* intercept TOTP verification request
*/
http.post(TOTP_VALIDATON_URL, ({ request }) => {
http.post(TOTP_VALIDATION_URL, ({ request }) => {
// the code is passed in the X-Authorization header in this case
let token = request.headers.get('X-Authorization') || '';
if (token.startsWith('Bearer TOTP:')) token = token.substring(12);
Expand Down

0 comments on commit dc01dce

Please sign in to comment.