mirror of
https://github.com/immich-app/immich.git
synced 2025-12-01 10:45:20 -05:00
fix(server): validate token permission (#21802)
This commit is contained in:
parent
74e14b6495
commit
b4c72fb609
@ -49,7 +49,7 @@ export class AuthController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Post('validateToken')
|
@Post('validateToken')
|
||||||
@Authenticated()
|
@Authenticated({ permission: false })
|
||||||
@HttpCode(HttpStatus.OK)
|
@HttpCode(HttpStatus.OK)
|
||||||
validateAccessToken(): ValidateAccessTokenResponseDto {
|
validateAccessToken(): ValidateAccessTokenResponseDto {
|
||||||
return { authStatus: true };
|
return { authStatus: true };
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user