Await auth()?

https://youtu.be/d5x0JCZbAJs?feature=shared&t=4501 1:15:00 Curious as to why Theo doesn't need to await auth as so:
const user = await auth();
const user = await auth();
I get Property 'userId' does not exist on type 'Promise<Auth>' If I don't do it
Theo - t3․gg
YouTube
From 0 to Production - The Modern React Tutorial (RSCs, Next.js, Sh...
The Modern React Tutorial is FINALLY done. This one took awhile. Shoutout to ALL the awesome sponsors who made this possible: - Vercel - Clerk - Posthog - Sentry - Upstash NOTES I MENTION DURING VIDEO "Nextgram": https://github.com/vercel/nextgram/tree/main/app "useUploadThingInputProps": https://gist.github.com/t3dotgg/0464ca78e94acce80ba04ca...
Solution:
I'm not completely sure, but it may have become async after the Next.js 15 release
Jump to solution
1 Reply
Solution
reptiloid
reptiloid4w ago
I'm not completely sure, but it may have become async after the Next.js 15 release

Did you find this page helpful?