mirror of
https://github.com/outline/outline.git
synced 2026-06-13 03:14:59 +03:00
a06671e8ce
This PR contains the necessary work to make Outline an OAuth provider including: - OAuth app registration - OAuth app management - Private / public apps (Public in cloud only) - Full OAuth 2.0 spec compatible authentication flow - Granular scopes - User token management screen in settings - Associated API endpoints for programatic access
15 lines
255 B
TypeScript
15 lines
255 B
TypeScript
import { getCookie } from "tiny-cookie";
|
|
|
|
export type Sessions = Record<
|
|
string,
|
|
{
|
|
name: string;
|
|
logoUrl: string;
|
|
url: string;
|
|
}
|
|
>;
|
|
|
|
export function useLoggedInSessions(): Sessions {
|
|
return JSON.parse(getCookie("sessions") || "{}");
|
|
}
|