Skip to content

Commit 3c61ac3

Browse files
Nermeen MattarNermeen Mattar
Nermeen Mattar
authored and
Nermeen Mattar
committed
Fix App Check swallowing errors and returning cached token
1 parent a24a76a commit 3c61ac3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/app-check/src/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ export async function getToken(
206206
appCheckInstance as AppCheckService,
207207
forceRefresh
208208
);
209-
if (result.error) {
210-
throw result.error;
209+
if (result.internalError) {
210+
throw result.internalError;
211211
}
212212
return { token: result.token };
213213
}

0 commit comments

Comments
 (0)