mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-23 23:46:35 +00:00
2c3fb15263
Prettier on every new or moved file that was not formatted, so lint:format holds them; the files taken off the format baseline are the ones that moved or were formatted on the way.
20 lines
747 B
TypeScript
20 lines
747 B
TypeScript
import { EphemeralTokenService } from './ephemeral-token.service';
|
|
import { Module } from '@nestjs/common';
|
|
|
|
/**
|
|
* A leaf module whose only job is to hand EphemeralTokenService out.
|
|
*
|
|
* It cannot live in AuthModule: TokensModule mints download and ws tokens too,
|
|
* and AuthModule already imports TokensModule, so importing it back would close
|
|
* a cycle. TokensModule is also documented as a deliberate leaf that three
|
|
* graphs reach for, so a dependency added there lands in all of them.
|
|
*
|
|
* Same shape and same reason as MailerModule, which broke
|
|
* AuthModule <-> NotificationsModule, and PluginGuardsModule.
|
|
*/
|
|
@Module({
|
|
providers: [EphemeralTokenService],
|
|
exports: [EphemeralTokenService],
|
|
})
|
|
export class EphemeralTokenModule {}
|