-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb850ac
commit ff4cfeb
Showing
4 changed files
with
6 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { createTRPCRouter, protectedProcedure, publicProcedure } from "../trpc"; | ||
import type { TRPCRouterRecord } from "@trpc/server"; | ||
|
||
export const authRouter = createTRPCRouter({ | ||
import { protectedProcedure, publicProcedure } from "../trpc"; | ||
|
||
export const authRouter = { | ||
getSession: publicProcedure.query(({ ctx }) => { | ||
return ctx.session; | ||
}), | ||
getSecretMessage: protectedProcedure.query(() => { | ||
// testing type validation of overridden next-auth Session in @acme/auth package | ||
return "you can see this secret message!"; | ||
}), | ||
}); | ||
} satisfies TRPCRouterRecord; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
ff4cfeb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
2day-report – ./
2day-report-git-main-artem-shcherbakovs-projects.vercel.app
2day-report-artem-shcherbakovs-projects.vercel.app
2day-report.vercel.app
2day.report