Skip to content

Commit

Permalink
fix(clerk-js): Ensure session is touched when setActive is called fro…
Browse files Browse the repository at this point in the history
…m a nonn standard browser
  • Loading branch information
BRKalow committed Aug 22, 2023
1 parent 17b3de9 commit 7ec06e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/clerk-js/src/core/clerk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ export default class Clerk implements ClerkInterface {
//1. setLastActiveSession to passed user session (add a param).
// Note that this will also update the session's active organization
// id.
if (inActiveBrowserTab()) {
if (inActiveBrowserTab() || !this.#options.standardBrowser) {
await this.#touchLastActiveSession(newSession);
// reload session from updated client
newSession = this.#getSessionFromClient(newSession?.id);
Expand Down

0 comments on commit 7ec06e7

Please sign in to comment.