Skip to content

Commit ec55b55

Browse files
committed
fix: replace typo scopes with scope
1 parent 4ca744c commit ec55b55

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/stupid-pets-carry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@navigraph/auth": patch
3+
---
4+
5+
Fixed a typo, `scopes` should have been `scope`

packages/auth/src/flows/shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { TokenResponse } from "../types";
88
export async function tokenCall(params: Record<string, string>) {
99
return axios
1010
.post<TokenResponse>(getIdentityTokenEndpoint(), new URLSearchParams(params), {
11-
withCredentials: params.scopes?.includes(Scope.TILES) ? true : undefined,
11+
withCredentials: params.scope?.includes(Scope.TILES) ? true : undefined,
1212
headers: { "Content-Type": "application/x-www-form-urlencoded" },
1313
})
1414
.then(async ({ data }) => {

0 commit comments

Comments
 (0)