switched to token based authentication

This commit is contained in:
Sockenklaus
2021-10-22 05:29:50 +02:00
parent 293d192691
commit f8bf1a745f
5 changed files with 79 additions and 22 deletions

View File

@@ -57,16 +57,16 @@ declare module '@ioc:Adonis/Addons/Auth' {
interface GuardsList {
/*
|--------------------------------------------------------------------------
| Web Guard
| OAT Guard
|--------------------------------------------------------------------------
|
| The web guard uses sessions for maintaining user login state. It uses
| the `user` provider for fetching user details.
| OAT, stands for (Opaque access tokens) guard uses database backed tokens
| to authenticate requests.
|
*/
web: {
implementation: SessionGuardContract<'user', 'web'>
config: SessionGuardConfig<'user'>
api: {
implementation: OATGuardContract<'user', 'api'>
config: OATGuardConfig<'user'>
}
}
}