()
| 116 | } |
| 117 | |
| 118 | export async function getSessionTokenFromCookies(): Promise< |
| 119 | string | undefined |
| 120 | > { |
| 121 | const cookieStore = await cookies() |
| 122 | return ( |
| 123 | cookieStore.get('authjs.session-token')?.value ?? |
| 124 | cookieStore.get('__Secure-next-auth.session-token')?.value ?? |
| 125 | cookieStore.get('next-auth.session-token')?.value |
| 126 | ) |
| 127 | } |
| 128 | |
| 129 | export async function createCliSession( |
| 130 | userId: string, |