Skip to content

Commit

Permalink
merged
Browse files Browse the repository at this point in the history
  • Loading branch information
pfftdammitchris committed Jul 3, 2024
2 parents e8de23c + 247c591 commit 959b7ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Check pull requests
on:
push:
branches-ignore: # Run the checks on all branches but the protected ones
- master
- main
- release/*

pull_request_target:
branches:
- master
- main
- release/*
types:
- opened
Expand Down
2 changes: 1 addition & 1 deletion src/cookies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export function createStorageFromOptions(

let decoded = chunkedCookie;

if (chunkedCookie !== null && chunkedCookie.startsWith(BASE64_PREFIX)) {
if (typeof chunkedCookie === 'string' && chunkedCookie.startsWith(BASE64_PREFIX)) {
decoded = stringFromBase64URL(
chunkedCookie.substring(BASE64_PREFIX.length),
);
Expand Down
4 changes: 3 additions & 1 deletion src/createServerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ export function createServerClient<
(event === "SIGNED_IN" ||
event === "TOKEN_REFRESHED" ||
event === "USER_UPDATED" ||
event === "SIGNED_OUT")
event === "PASSWORD_RECOVERY" ||
event === "SIGNED_OUT" ||
event === "MFA_CHALLENGE_VERIFIED")
) {
await applyServerStorage(
{ getAll, setAll, setItems, removedItems },
Expand Down

0 comments on commit 959b7ad

Please sign in to comment.