Skip to content

Commit

Permalink
feat:loginWithRedirect add params login_page_context
Browse files Browse the repository at this point in the history
  • Loading branch information
周雅风 committed Jan 23, 2024
1 parent a7139c7 commit 4f267e0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/web/src/Authing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ export class Authing {
originalUri?: string
forced?: boolean
customState?: any
login_page_context?: string
} = {}
): Promise<void> {
const redirectUri = options.redirectUri || this.options.redirectUri
Expand All @@ -287,10 +288,13 @@ export class Authing {
? this.options.implicitResponseType
: 'code',
client_id: this.options.appId,
...(options.forced && { prompt: 'login' }),
state,
nonce,
scope: this.options.scope
scope: this.options.scope,
...(options.forced && { prompt: 'login' }),
...(options.login_page_context && {
login_page_context: options.login_page_context
})
}

let codeVerifier: string | undefined
Expand Down

0 comments on commit 4f267e0

Please sign in to comment.