mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 08:06:00 +00:00
introduced auth strategy actions to allow user creation in UI
This commit is contained in:
@@ -39,6 +39,13 @@ export abstract class ModuleApi<Options extends BaseModuleApiOptions = BaseModul
|
||||
} as Options;
|
||||
}
|
||||
|
||||
/**
|
||||
* used for SWR invalidation of basepath
|
||||
*/
|
||||
key(): string {
|
||||
return this.options.basepath ?? "";
|
||||
}
|
||||
|
||||
protected getUrl(path: string) {
|
||||
const basepath = this.options.basepath ?? "";
|
||||
return this.options.host + (basepath + "/" + path).replace(/\/{2,}/g, "/").replace(/\/$/, "");
|
||||
|
||||
Reference in New Issue
Block a user