fix: sentry-plugin passing token - no need for catch
Signed-off-by: rodion <rodiongork@github.com>
This commit is contained in:
@@ -55,15 +55,11 @@ export class ProductionSentryApi implements SentryApi {
|
||||
if (!this.identityApi) {
|
||||
return {};
|
||||
}
|
||||
try {
|
||||
const token = await this.identityApi.getIdToken();
|
||||
return {
|
||||
headers: {
|
||||
authorization: `Bearer ${token}`,
|
||||
},
|
||||
};
|
||||
} catch (e) {
|
||||
return {};
|
||||
}
|
||||
const token = await this.identityApi.getIdToken();
|
||||
return {
|
||||
headers: {
|
||||
authorization: `Bearer ${token}`,
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user