mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Working on role in workspace.
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
import {cookies} from 'next/headers';
|
||||
|
||||
|
||||
const COOKIE_NAME = 'PORTABASE_ORGANIZATION_SLUG';
|
||||
|
||||
export async function getCurrentOrganizationSlug() {
|
||||
@@ -11,4 +10,8 @@ export async function getCurrentOrganizationSlug() {
|
||||
|
||||
export async function setCurrentOrganizationSlug(slug: string) {
|
||||
return (await cookies()).set(COOKIE_NAME, slug).get(COOKIE_NAME)?.value;
|
||||
}
|
||||
}
|
||||
|
||||
export async function deleteOrganizationCookie() {
|
||||
return (await cookies()).delete(COOKIE_NAME);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user