3.0.3 • Published 8 months ago
@projectfive/v-auth v3.0.3
Auth
Initialize
Install as Vue plugin with: app.use(Auth, { options })
Where options
is an object containing:
http
- axios instanceparams
- optional object containing extra parameters to add to api-requests. Example:params: { table: 'dealers' }}
Usage
States in setup
inject('auth')
- Refs containing Auth State. See Auth State for contents.inject('isAuthenticated')
- Computed boolean
Globalproperties in templates
$auth
- Refs containing Auth State. See Auth State for contents.$isAuthenticated
- Computed boolean
Exported data
- getAuthToken - function that returns auth token(s)
- methods - list of functions:
- loginWithIDP
- loginWithProvider
- logout
- resetPassword
- restoreSession
- smartlockGet
- smartlockSave
Auth State
The authorization state contains:
- token - current token as string
- tokens - array with valid tokens for this user (multi-session)
- user - object containing user data
- accounts - array containing session/user objects
3.0.3
8 months ago
3.0.2
8 months ago
3.0.1
8 months ago
3.0.0
8 months ago
2.3.1
8 months ago
2.3.0
10 months ago
2.2.2
1 year ago
2.2.1
1 year ago
2.2.0
1 year ago
2.1.7
1 year ago
2.1.6
2 years ago
2.1.5
2 years ago
2.1.2
2 years ago
2.1.1
2 years ago
2.1.4
2 years ago
2.1.3
2 years ago
2.1.0
2 years ago
2.0.3
2 years ago
2.0.4
2 years ago
2.0.2
2 years ago
2.0.1
2 years ago
2.0.0
3 years ago
1.0.32
3 years ago
1.0.31
3 years ago
1.0.29
3 years ago
1.0.30
3 years ago
1.0.28
3 years ago
1.0.27
3 years ago
1.0.26
3 years ago
1.0.19
4 years ago
1.0.18
4 years ago
1.0.17
4 years ago
1.0.16
4 years ago
1.0.22
4 years ago
1.0.21
4 years ago
1.0.20
4 years ago
1.0.25
4 years ago
1.0.24
4 years ago
1.0.23
4 years ago
1.0.11
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.10
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago