Skip to content

Commit

Permalink
Removed console warning. See #147
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-ignatov committed Sep 1, 2022
1 parent 0d21d18 commit 5c9402a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/smart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,17 +678,6 @@ export async function buildTokenRequest(
privateKey.key as CryptoKey:
await env.security.importJWK(privateKey as fhirclient.JWK)

if (isBrowser() && pk.extractable) {
console.warn(
"Your private key is extractable, and could be stolen via " +
"cross-site scripting. Please generate an unextractable key " +
"instead. If you registered a static credentials with an " +
"EHR, consider (1) removing those credentials and registering " +
"as a public client or (2) using this library server-side if " +
"your application runs on a web server."
);
}

const jwtHeaders = {
typ: "JWT",
kid: privateKey.kid,
Expand Down

0 comments on commit 5c9402a

Please sign in to comment.