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

x/oauth2_server/models/scope.ts>ScopeInterface

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

Methods

Deletes all scope tokens from this scope.

add(scope: ScopeInterface | string): ScopeInterface

Adds all scope tokens in the passted in scope to this scope.

remove(scope: ScopeInterface | string): ScopeInterface

Removes all scope tokens in the passed in scope from this scope.

has(scope: ScopeInterface | string): boolean

Checks that this scope has all scope tokens in the passed in scope.

equals(scope: ScopeInterface | string): boolean

Checks that this scope is equal to the passed in scope.

toString(): string

Converts the scope to a string representation.

toJSON(): string

Converts the scope to a JSON representation.

[[Symbol.iterator]](): IterableIterator<string>

Returns an iterator for retrieving tokens from the scope in insertion order.