Hey, I somehow need to issue a new token instead of using google/disc/email auth, is there a way to do that somehow? I couldnt find anything in the docs for some reason
export const getTokenByClerkId = async (req: any, res: any, context: any) => { try { const clerkId = req?.query?.clerkId || ''; const user = await context.entities.User.findUnique({ where: { clerkUserId: clerkId }, }); if (!user) { throw new Error('User not found'); } // Sent session token for get /me info res.status(200).json({ message: user }); } catch (error) { res.status(401).json({ message: error }); }}
export const getTokenByClerkId = async (req: any, res: any, context: any) => { try { const clerkId = req?.query?.clerkId || ''; const user = await context.entities.User.findUnique({ where: { clerkUserId: clerkId }, }); if (!user) { throw new Error('User not found'); } // Sent session token for get /me info res.status(200).json({ message: user }); } catch (error) { res.status(401).json({ message: error }); }}
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
W
Wasp
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.