mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
17 lines
302 B
Handlebars
17 lines
302 B
Handlebars
import { query } from "./_generated/server";
|
|
|
|
export const get = query({
|
|
args: {},
|
|
handler: async (ctx) => {
|
|
const identity = await ctx.auth.getUserIdentity();
|
|
if (identity === null) {
|
|
return {
|
|
message: "Not authenticated",
|
|
};
|
|
}
|
|
return {
|
|
message: "This is private",
|
|
};
|
|
},
|
|
});
|