© 2026 Hedgehog Software, LLC
import type { OnAfterLoginHook } from 'wasp/server/auth'; export const onAfterLogin: OnAfterLoginHook = async ({ providerId, user, oauth, prisma, req, }) => { console.log('test'); try { await prisma.logs.create({ data: { message: 'test', level: 'test onAfterLogin', }, }); } catch (error) { console.error('Error updating Log.', error); } try { await prisma.user.update({ where: { id: user.id, }, data: { username: 'vdssd' } }); } catch (error) { console.error('Error updating user.', error); } };
Join the Discord to ask follow-up questions and connect with the community
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.
4,603 Members