...
This method is used only by TRUSTED_PIS, PIS and CABINET client types.
Only one active verification code can exist for phone number.
This method can be used only with JWT with fixed set of
aud
, specific for each client type.
Specification
Validate JWT
Check Authorization header contains a valid JWT
in case of error - return 401 ('JWT is invalid')
Check JWT is not expired (
exp
> now())in case of error - return 401 ('JWT expired')
Check JWT is with correct
aud
:cabinet-registration
,pis-registration
,trusted-client
.in case of error - return 401 ('JWT is not permitted for this action')
...