Skip to content

Commit 156179a

Browse files
committed
fix header
1 parent 5b23bed commit 156179a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

auth.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,6 @@ async function processJWT(doc, prefix, pin, req, route) {
576576
objectPath.set(nosh, 'email', objectPath.get(verify_results, 'payload.sub'))
577577
const payload = {
578578
"_gnap": doc,
579-
"jwt": jwt,
580579
"_noshAPI": {
581580
"uspstf_key": process.env.USPSTF_KEY,
582581
"umls_key": process.env.UMLS_KEY,

nosh3-client/src/stores/auth.store.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const useAuthStore = defineStore(localStorage.getItem('auth_id') || 'auth
4545
this.pin = payload._nosh.pin
4646
this.instance = payload._nosh.instance
4747
this.trustee = payload._nosh.trustee_url
48-
this.gnap_jwt = payload.jwt
48+
this.gnap_jwt = payload._gnap.access_token.value
4949
this.rotate_jwt_uri = payload._gnap.access_token.manage.uri
5050
this.rotate_jwt = payload._gnap.access_token.manage.access_token.value
5151
this.patient = payload._nosh.patient
@@ -92,7 +92,7 @@ export const useAuthStore = defineStore(localStorage.getItem('auth_id') || 'auth
9292
this.pin = payload._nosh.pin
9393
this.instance = payload._nosh.instance
9494
this.trustee = payload._nosh.trustee_url
95-
this.gnap_jwt = payload.jwt
95+
this.gnap_jwt = payload._gnap.access_token.value
9696
this.rotate_jwt_uri = payload._gnap.access_token.manage.uri
9797
this.rotate_jwt = payload._gnap.access_token.manage.access_token.value
9898
this.patient = payload._nosh.patient

0 commit comments

Comments
 (0)