oidc-provider
Version:
OAuth 2.0 Authorization Server implementation for Node.js with OpenID Connect
19 lines (16 loc) • 419 B
JavaScript
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;
}
}