Skip to main content

getAuthorizationUrl()

function getAuthorizationUrl(
clientId: string,
scopes: (
| "user:read"
| "user:write"
| "workspaces:read"
| "workspaces:write"
| "channels:read"
| "channels:write"
| "channels:remove"
| "threads:read"
| "threads:write"
| "threads:remove"
| "comments:read"
| "comments:write"
| "comments:remove"
| "groups:read"
| "groups:write"
| "groups:remove"
| "messages:read"
| "messages:write"
| "messages:remove"
| "reactions:read"
| "reactions:write"
| "reactions:remove"
| "search:read"
| "attachments:read"
| "attachments:write"
| "notifications:read"
| "notifications:write")[],
state: string,
redirectUri?: string,
baseUrl?: string): string;

Parameters

ParameterType
clientIdstring
scopes( | "user:read" | "user:write" | "workspaces:read" | "workspaces:write" | "channels:read" | "channels:write" | "channels:remove" | "threads:read" | "threads:write" | "threads:remove" | "comments:read" | "comments:write" | "comments:remove" | "groups:read" | "groups:write" | "groups:remove" | "messages:read" | "messages:write" | "messages:remove" | "reactions:read" | "reactions:write" | "reactions:remove" | "search:read" | "attachments:read" | "attachments:write" | "notifications:read" | "notifications:write")[]
statestring
redirectUri?string
baseUrl?string

Returns

string