auth deploy
This commit is contained in:
25
app/models/auth/KeyAction.model.js
Normal file
25
app/models/auth/KeyAction.model.js
Normal file
@@ -0,0 +1,25 @@
|
||||
const Model = require('flitter-auth/model/KeyAction')
|
||||
|
||||
/*
|
||||
* KeyAction Model
|
||||
* -------------------------------------------------------------
|
||||
* Represents a single available key action. Key actions
|
||||
* are one-time use links that directly call a method on
|
||||
* a controller. These actions:
|
||||
*
|
||||
* - Can pass along context
|
||||
* - Have expiration dates
|
||||
* - Are single-use only
|
||||
* - Can automatically log in a user during the request lifecycle
|
||||
*
|
||||
* You can generate these actions using the request.security.keyaction()
|
||||
* method.
|
||||
*
|
||||
* See: module:flitter-auth/SecurityContext~SecurityContext#keyaction
|
||||
* See: module:flitter-auth/model/KeyAction~KeyAction
|
||||
*/
|
||||
class KeyAction extends Model {
|
||||
|
||||
}
|
||||
|
||||
module.exports = exports = KeyAction
|
||||
18
app/models/auth/User.model.js
Normal file
18
app/models/auth/User.model.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const AuthUser = require('flitter-auth/model/User')
|
||||
|
||||
/*
|
||||
* Auth user model. This inherits fields and methods from the default
|
||||
* flitter-auth/model/User model, however you can override methods and
|
||||
* properties here as you need.
|
||||
*/
|
||||
class User extends AuthUser {
|
||||
static get schema() {
|
||||
return {...super.schema, ...{
|
||||
// other schema fields here
|
||||
}}
|
||||
}
|
||||
|
||||
// Other members and methods here
|
||||
}
|
||||
|
||||
module.exports = exports = User
|
||||
Reference in New Issue
Block a user