From bf1d71284db2ac644f252dc07aecb31d53ac6242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Sat, 28 Jul 2018 02:20:40 +0200 Subject: [PATCH] [auth0-js] Add language value in AuthorizeOptions (#27438) * Add language value to AuthorizeOptions * Update test --- types/auth0-js/auth0-js-tests.ts | 3 ++- types/auth0-js/index.d.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/types/auth0-js/auth0-js-tests.ts b/types/auth0-js/auth0-js-tests.ts index d05ee2251e..79277e04c9 100644 --- a/types/auth0-js/auth0-js-tests.ts +++ b/types/auth0-js/auth0-js-tests.ts @@ -9,7 +9,8 @@ webAuth.authorize({ audience: 'https://mystore.com/api/v2', scope: 'read:order write:order', responseType: 'token', - redirectUri: 'https://example.com/auth/callback' + redirectUri: 'https://example.com/auth/callback', + language: 'en' }); webAuth.parseHash((err, authResult) => { diff --git a/types/auth0-js/index.d.ts b/types/auth0-js/index.d.ts index c7224599bd..62047bae71 100644 --- a/types/auth0-js/index.d.ts +++ b/types/auth0-js/index.d.ts @@ -760,6 +760,7 @@ export interface AuthorizeOptions { nonce?: string; scope?: string; audience?: string; + language?: string; } export interface CheckSessionOptions extends AuthorizeOptions {