How to update `api/auth/get-session` with new session data?

I am updating the users table with the new name but accessing
api/auth/get-session
gives the old data. Is there a way to trigger an update when the database is updated so session data is also updated?

I am using tanstack start. ```import { createAPIFileRoute } from '@tanstack/react-start/api'

import { auth } from '@/lib/auth'

export const APIRoute = createAPIFileRoute('/api/auth/$')({
GET: ({ request }) => auth.handler(request),
POST: ({ request }) => auth.handler(request),
})
Was this page helpful?