Skip to content

Commit

Permalink
apply prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
cainlevy committed Feb 9, 2024
1 parent a221fcb commit baaae25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ Based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## HEAD

- add beginOAuthUrl [#66]

## 1.5.0

- Add TOTP MFA functions (require authn-server v1.18 or newer)

## 1.4.1

- Update semver from 6.3.0 to 6.3.1 (#57)
- Update word-wrap from 1.2.3 to 1.2.5 (#62)
- Update babel/traverse from 7.14.2 to 7.23.6 (#61)
Expand Down
5 changes: 4 additions & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ export function deleteTOTP(): Promise<boolean> {
.catch(() => false);
}

export function beginOAuthUrl(providerName: string, redirectUri: string): string {
export function beginOAuthUrl(
providerName: string,
redirectUri: string
): string {
let redirectUriParam = encodeURIComponent(redirectUri);
return url(`/oauth/${providerName}?redirect_uri=${redirectUriParam}`);
}
Expand Down

0 comments on commit baaae25

Please sign in to comment.