UNPKG

oidc-provider

Version:

OAuth 2.0 Authorization Server implementation for Node.js with OpenID Connect

21 lines (17 loc) 462 B
/* eslint-disable no-underscore-dangle */ export default class ResourceServer { constructor(identifier, data) { this._identifier = identifier; this.audience = data.audience; this.scope = data.scope; this.accessTokenTTL = data.accessTokenTTL; this.accessTokenFormat = data.accessTokenFormat; this.jwt = data.jwt; } get scopes() { return new Set(this.scope?.split(' ')); } identifier() { return this._identifier; } }