src/middleware/oauth2models.js
export default {Function `oauth2accesstoken` has 26 lines of code (exceeds 25 allowed). Consider refactoring. oauth2accesstoken (schema) { return { 'model': { 'UserId': { type: schema.String }, 'Token': { type: schema.String }, 'RefreshToken': { type: schema.String }, 'ApplicationId': { type: schema.String }, 'Expires': { type: schema.Date }, 'Scope': { type: schema.Text } }, 'extra': { TimeStamps: false }, relations: {} }; },Function `oauth2application` has 27 lines of code (exceeds 25 allowed). Consider refactoring. oauth2application (schema) { return { 'model': { 'ClientId': { type: schema.String }, 'UserId': { type: schema.String }, 'ClientType': { type: schema.String }, 'AuthorizationGrantType': { type: schema.Number }, 'ClientSecret': { type: schema.String }, 'Name': { type: schema.String }, 'Skip': { type: schema.Boolean } }, 'extra': {}, relations: {} }; }};