refactor(center): introspect relies on api key auth instead of shared secret
This commit is contained in:
@@ -37,10 +37,7 @@ export class AuthController {
|
||||
}
|
||||
|
||||
@Post('introspect')
|
||||
introspect(
|
||||
@Body() body: { token?: string; guildNodeId?: string },
|
||||
@Headers('x-center-shared-secret') sharedSecret?: string,
|
||||
) {
|
||||
return this.authService.introspectGuildToken(body?.token ?? '', body?.guildNodeId ?? '', sharedSecret);
|
||||
introspect(@Body() body: { token?: string; guildNodeId?: string }) {
|
||||
return this.authService.introspectGuildToken(body?.token ?? '', body?.guildNodeId ?? '');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user