Skip to content

Commit

Permalink
style: formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Aug 25, 2024
1 parent edc7f38 commit c3e42c3
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/AusweisAuthFlow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,15 +211,21 @@ export class AusweisAuthFlow {
message.result.major === 'http://www.bsi.bund.de/ecard/api/1.1/resultmajor#error' &&
message.result.minor === 'http://www.bsi.bund.de/ecard/api/1.1/resultminor/sal#cancellationByUser'
) {
this.handleError({
reason: 'user_cancelled',
message: message.result.message ?? 'User cancelled',
}, false)
this.handleError(
{
reason: 'user_cancelled',
message: message.result.message ?? 'User cancelled',
},
false
)
} else {
this.handleError({
reason: 'unknown',
message: `Unknown error occurred in auth flow. ${message.result.message}`,
}, false)
this.handleError(
{
reason: 'unknown',
message: `Unknown error occurred in auth flow. ${message.result.message}`,
},
false
)
}
}

Expand Down

0 comments on commit c3e42c3

Please sign in to comment.