- adds
AuthProvider['init']to inject CmsOptions - merges
AuthProvider['getUsername']intoAuthProvider['login']
- adds `AuthProvider['init']` to inject CmsOptions
- merges `AuthProvider['getUsername']` into `AuthProvider['login']`
AuthProvider['init'] to inject CmsOptionsAuthProvider['getUsername'] into AuthProvider['login']@ -1,49 +1,68 @@
import type { AuthProvider, UserConfiguration } from "../types.ts";
import type { AuthProvider, AuthProviderOptions } from "../types.ts";
The return type can be Response or Promise<Response>. So this function don't need to be async. And _request argument could be omitted.
We can drop async and the unused argument from this
@ -41,14 +41,16 @@ export interface SiteInfo {
body?: string;
}
Can you move this to an interface?
interface AuthProviderOptions {
basePath: string;
users: Map<string, UserConfiguration>,
}
Perfect! Thank you!
My pleasure! thanks @oscarotero
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?