Refactor OAuth application stuff

This commit is contained in:
Schuyler Cebulskie
2016-10-30 16:55:08 -04:00
parent 589c44327a
commit 85330769a7
6 changed files with 18 additions and 18 deletions

View File

@@ -1,11 +1,11 @@
const User = require('./User');
const OAuth2App = require('./OAuth2App');
const OAuth2Application = require('./OAuth2Application');
/**
* Represents the client's OAuth2 Application
* @extends {OAuth2App}
* @extends {OAuth2Application}
*/
class ClientOAuth2App extends OAuth2App {
class ClientOAuth2Application extends OAuth2Application {
setup(data) {
super.setup(data);
@@ -23,4 +23,4 @@ class ClientOAuth2App extends OAuth2App {
}
}
module.exports = ClientOAuth2App;
module.exports = ClientOAuth2Application;

View File

@@ -1,10 +1,10 @@
/**
* Represents a OAuth2 Application
* Represents an OAuth2 Application
*/
class OAuth2App {
class OAuth2Application {
constructor(client, data) {
/**
* The client that instantiated the role
* The client that instantiated the application
* @type {Client}
*/
this.client = client;
@@ -78,4 +78,4 @@ class OAuth2App {
}
}
module.exports = OAuth2App;
module.exports = OAuth2Application;