mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 12:56:05 +00:00
added auth strategies form + add ability to disable strategies
This commit is contained in:
@@ -8,7 +8,11 @@ export function useBkndAuth() {
|
||||
config: {
|
||||
set: async (data: Partial<AppAuthSchema>) => {
|
||||
console.log("--set", data);
|
||||
return await bkndActions.set("auth", data, true);
|
||||
if (await bkndActions.set("auth", data, true)) {
|
||||
await bkndActions.reload();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
},
|
||||
roles: {
|
||||
|
||||
Reference in New Issue
Block a user