change protocol
This commit is contained in:
@@ -37,7 +37,7 @@ export async function createSession(token: string, email: string) {
|
||||
|
||||
cookieStore.set('session', session, {
|
||||
httpOnly: true,
|
||||
secure: true,
|
||||
secure: false,
|
||||
expires: expiresAt,
|
||||
sameSite: 'lax',
|
||||
path: '/',
|
||||
|
||||
@@ -95,7 +95,7 @@ export default function UserMenuButton() {
|
||||
</div>
|
||||
|
||||
<div className="user-menu-footer">
|
||||
<Link href="/logout" className="user-menu-logout">
|
||||
<Link href="/" className="user-menu-logout">
|
||||
<svg viewBox="0 0 24 24" fill="currentColor">
|
||||
<path d="M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"></path>
|
||||
</svg>
|
||||
|
||||
Reference in New Issue
Block a user