Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-ignatov committed Sep 25, 2020
1 parent 89a5c6f commit b834a8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/smart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ export async function completeAuth(env: fhirclient.Adapter): Promise<Client>

// Assume the client has already completed a token exchange when
// there is no code (but we have a state) or access token is found in state
const authorized = !code || state?.tokenResponse?.access_token;
const authorized = !code || state.tokenResponse?.access_token;

// If we are authorized already, then this is just a reload.
// Otherwise, we have to complete the code flow
Expand Down Expand Up @@ -576,7 +576,7 @@ export async function completeAuth(env: fhirclient.Adapter): Promise<Client>
debug("Authorization successful!");
}
else {
debug(state?.tokenResponse?.access_token ?
debug(state.tokenResponse?.access_token ?
"Already authorized" :
"No authorization needed"
);
Expand Down

0 comments on commit b834a8d

Please sign in to comment.