feat: add docs and polish

This commit is contained in:
Julian Tölle 2020-05-03 20:57:03 +02:00
parent a27fcce03b
commit 75d3e2edbd
9 changed files with 94 additions and 55 deletions

View file

@ -14,7 +14,10 @@ import { SpotifyStrategy } from "./spotify.strategy";
JwtModule.registerAsync({
useFactory: (config: ConfigService) => ({
secret: config.get<string>("JWT_SECRET"),
signOptions: { expiresIn: config.get<string>("JWT_EXPIRATION_TIME") },
signOptions: {
expiresIn: config.get<string>("JWT_EXPIRATION_TIME"),
algorithm: config.get("JWT_ALGORITHM"),
},
}),
inject: [ConfigService],
}),