AuthViewApi
interface`ctx.auth` in a view: resolve an authentication session from a provider this mod (or another) declared. The option and result shapes are protocol vocabulary; this interface is the capability itself.
Import
import { AuthViewApi } from '@modular/sdk';Members1
- getSession()
(provider: AuthProvider | string, scopes: readonly string[], options?: AuthGetSessionOptions) => Promise<AuthSessionResult>