feat(router): Added JWT authentication (#346)

This commit is contained in:
Rachit Naithani
2023-01-11 17:28:40 +05:30
committed by GitHub
parent c5cf63b775
commit ecacefd298
5 changed files with 134 additions and 6 deletions

View File

@ -320,6 +320,7 @@ impl From<errors::ApiErrorResponse> for StripeErrorCode {
fn from(value: errors::ApiErrorResponse) -> Self {
match value {
errors::ApiErrorResponse::Unauthorized
| errors::ApiErrorResponse::InvalidJwtToken
| errors::ApiErrorResponse::InvalidEphermeralKey => Self::Unauthorized,
errors::ApiErrorResponse::InvalidRequestUrl
| errors::ApiErrorResponse::InvalidHttpMethod => Self::InvalidRequestUrl,