Skip to content

Commit

Permalink
fix: Rename sessioninfo endpoint to test
Browse files Browse the repository at this point in the history
  • Loading branch information
anku255 committed May 30, 2024
1 parent 20d47db commit 89b1421
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion v2/emailpassword/nestjs/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,8 @@ import { Session } from './auth/session/session.decorator';
@Controller()
export class AppController {
// ...
@Get('/sessioninfo')
// Test endpoint for session verification; not part of the Supertokens setup.
@Get('/test')
@UseGuards(new AuthGuard())
getSessionInfo(
@Session() session: SessionContainer,
Expand Down
3 changes: 2 additions & 1 deletion v2/passwordless/nestjs/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ import { Session } from './auth/session/session.decorator';
@Controller()
export class AppController {
// ...
@Get('/sessioninfo')
// Test endpoint for session verification; not part of the Supertokens setup.
@Get('/test')
@UseGuards(new AuthGuard())
getSessionInfo(
@Session() session: SessionContainer,
Expand Down
3 changes: 2 additions & 1 deletion v2/thirdparty/nestjs/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,8 @@ import { Session } from './auth/session/session.decorator';
@Controller()
export class AppController {
// ...
@Get('/sessioninfo')
// Test endpoint for session verification; not part of the Supertokens setup.
@Get('/test')
@UseGuards(new AuthGuard())
getSessionInfo(
@Session() session: SessionContainer,
Expand Down
3 changes: 2 additions & 1 deletion v2/thirdpartyemailpassword/nestjs/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,8 @@ import { Session } from './auth/session/session.decorator';
@Controller()
export class AppController {
// ...
@Get('/sessioninfo')
// Test endpoint for session verification; not part of the Supertokens setup.
@Get('/test')
@UseGuards(new AuthGuard())
getSessionInfo(
@Session() session: SessionContainer,
Expand Down
3 changes: 2 additions & 1 deletion v2/thirdpartypasswordless/nestjs/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,8 @@ import { Session } from './auth/session/session.decorator';
@Controller()
export class AppController {
// ...
@Get('/sessioninfo')
// Test endpoint for session verification; not part of the Supertokens setup.
@Get('/test')
@UseGuards(new AuthGuard())
getSessionInfo(
@Session() session: SessionContainer,
Expand Down

0 comments on commit 89b1421

Please sign in to comment.