mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-03 23:36:21 +02:00
35 lines
792 B
Plaintext
35 lines
792 B
Plaintext
/**
|
|
* Config source: https://git.io/JY0mp
|
|
*
|
|
* Feel free to let us know via PR, if you find something broken in this config
|
|
* file.
|
|
*/
|
|
|
|
import type { AuthConfig } from '@ioc:Adonis/Addons/Auth'
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Authentication Mapping
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| List of available authentication mapping. You must first define them
|
|
| inside the `contracts/auth.ts` file before mentioning them here.
|
|
|
|
|
*/
|
|
const authConfig: AuthConfig = {
|
|
guard: '{{ guards.0 }}',
|
|
guards: {
|
|
{{#hasGuard.web}}
|
|
{{> web_guard}}
|
|
{{/hasGuard.web}}
|
|
{{#hasGuard.api}}
|
|
{{> api_guard}}
|
|
{{/hasGuard.api}}
|
|
{{#hasGuard.basic}}
|
|
{{> basic_guard}}
|
|
{{/hasGuard.basic}}
|
|
},
|
|
}
|
|
|
|
export default authConfig
|