Skip to content

Commit

Permalink
Merge pull request #3 from authsignal/challenge-with-redirect
Browse files Browse the repository at this point in the history
Add challengeWithRedirect method
  • Loading branch information
hwhmeikle committed May 27, 2022
2 parents ffeda7b + 851e20e commit e4a703c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Authsignal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ export class AuthsignalClient {
return {idCookie: newId, generated: true};
}

challengeWithRedirect({challengeUrl}: AuthsignalChallenge) {
window.location.href = challengeUrl;
}

challengeWithPopup({challengeUrl}: AuthsignalChallenge): Promise<boolean> {
const Popup = new PopupHandler();

Expand Down

0 comments on commit e4a703c

Please sign in to comment.