mirror of
https://github.com/hay-kot/homebox.git
synced 2025-10-07 06:27:22 +00:00
feat(auth): support for forwarded auth provider
This commit is contained in:
parent
0041c277ad
commit
bbf9878963
12 changed files with 266 additions and 61 deletions
|
@ -84,8 +84,8 @@ class AuthContext implements IAuthContext {
|
|||
console.log("Session invalidated");
|
||||
}
|
||||
|
||||
async login(api: PublicApi, email: string, password: string, stayLoggedIn: boolean) {
|
||||
const r = await api.login(email, password, stayLoggedIn);
|
||||
async login(api: PublicApi, email: string, password: string, stayLoggedIn: boolean, provider = "local") {
|
||||
const r = await api.login(email, password, stayLoggedIn, provider);
|
||||
|
||||
if (!r.error) {
|
||||
const expiresAt = new Date(r.data.expiresAt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue