File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ ARG PUBLIC_CONSOLE_MOCK_AI_SUGGESTIONS
2222ARG PUBLIC_APPWRITE_ENDPOINT
2323ARG PUBLIC_GROWTH_ENDPOINT
2424ARG PUBLIC_STRIPE_KEY
25+ ARG PUBLIC_CONSOLE_FINGERPRINT_KEY
2526ARG SENTRY_AUTH_TOKEN
2627ARG SENTRY_RELEASE
2728
@@ -33,6 +34,7 @@ ENV PUBLIC_APPWRITE_MULTI_REGION=$PUBLIC_APPWRITE_MULTI_REGION
3334ENV PUBLIC_CONSOLE_EMAIL_VERIFICATION=$PUBLIC_CONSOLE_EMAIL_VERIFICATION
3435ENV PUBLIC_CONSOLE_MOCK_AI_SUGGESTIONS=$PUBLIC_CONSOLE_MOCK_AI_SUGGESTIONS
3536ENV PUBLIC_STRIPE_KEY=$PUBLIC_STRIPE_KEY
37+ ENV PUBLIC_CONSOLE_FINGERPRINT_KEY=$PUBLIC_CONSOLE_FINGERPRINT_KEY
3638ENV SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN
3739ENV SENTRY_RELEASE=$SENTRY_RELEASE
3840ENV NODE_OPTIONS=--max_old_space_size=8192
Original file line number Diff line number Diff line change @@ -205,6 +205,11 @@ export async function generateFingerprintToken(): Promise<string> {
205205
206206 const payload = JSON . stringify ( signals ) ;
207207 const encoded = btoa ( payload ) ;
208+
209+ if ( ! SECRET ) {
210+ return encoded ;
211+ }
212+
208213 const signature = await hmacSha256 ( encoded , SECRET ) ;
209214
210215 return `${ encoded } .${ signature } ` ;
You can’t perform that action at this time.
0 commit comments