feat: get request JTI helper
This commit is contained in:
@ -11,3 +11,7 @@ func GetRequestUserId(ctx context.Context) (string, bool) {
|
|||||||
return userId, ok
|
return userId, ok
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetRequestJTI(ctx context.Context) (string, bool) {
|
||||||
|
jti, ok := ctx.Value(types.JTIKey).(string)
|
||||||
|
return jti, ok
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user