mirror of
https://github.com/apricote/Listory.git
synced 2026-02-06 17:57:03 +00:00
10 lines
352 B
TypeScript
10 lines
352 B
TypeScript
|
|
import { AuthGuard } from "@nestjs/passport";
|
||
|
|
import { AuthStrategy } from "../strategies/strategies.enum";
|
||
|
|
|
||
|
|
// Internal
|
||
|
|
export const AccessTokenAuthGuard = AuthGuard(AuthStrategy.AccessToken);
|
||
|
|
export const RefreshTokenAuthGuard = AuthGuard(AuthStrategy.RefreshToken);
|
||
|
|
|
||
|
|
// Auth Provider
|
||
|
|
export const SpotifyAuthGuard = AuthGuard(AuthStrategy.Spotify);
|