Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oauth2_server/models/scope.ts>ScopeConstructor

A standards compliant implementation of an OAuth 2.0 authorization server with PKCE support.
Latest
interface ScopeConstructor
import { type ScopeConstructor } from "https://deno.land/x/oauth2_server@0.12.0/models/scope.ts";

Constructor for scope.

Methods

new(scope?: string): Scope
from(scope: Scope | string): Scope

Creates a new scope with all scope tokens from both scopes.

union(a: Scope | string, b: Scope | string): Scope

Creates a new scope with all scope tokens from both scopes.

intersection(a: Scope | string, b: Scope | string): Scope

Creates a new scope with all scope tokens that are present in both scopes.