Skip to content

Commit

Permalink
Add comment about availability restricted to secure contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
dlarocque committed Jan 7, 2025
1 parent 6ed7315 commit e93f105
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/app-check/src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export async function readOrCreateDebugTokenFromStorage(): Promise<string> {

if (!existingDebugToken) {
// create a new debug token
// This function is only available in secure contexts. See https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts
const newToken = crypto.randomUUID();
// We don't need to block on writing to indexeddb
// In case persistence failed, a new debug token will be generated every time the page is refreshed.
Expand Down

0 comments on commit e93f105

Please sign in to comment.