mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
feat(router): Added JWT authentication (#346)
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user