fix(services): 🐛 types on return value
This commit is contained in:
parent
3b41cf1c5a
commit
71c20c8a06
@ -8,10 +8,10 @@ const logger = new Logger({ name: "JwtService" });
|
||||
*
|
||||
* @param {string | Uint8Array} jwt
|
||||
* - The JWT token to verify.
|
||||
* @returns {Promise<null | object>}
|
||||
* @returns {Promise<null | JWTPayload>}
|
||||
* - The payload of the verified JWT token or null if verification fails.
|
||||
*/
|
||||
async function JwtVerifyService(jwt: string | Uint8Array): Promise<null | object> {
|
||||
async function JwtVerifyService(jwt: string | Uint8Array): Promise<null | JWTPayload> {
|
||||
try {
|
||||
const result = await Jose.jwtVerify(
|
||||
jwt,
|
||||
|
Loading…
x
Reference in New Issue
Block a user