mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +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