feat: add username-password login flow via authentik token endpoint

This commit is contained in:
Chris
2026-03-30 00:52:09 +08:00
parent 1884d2d947
commit b8652b76df
2 changed files with 29 additions and 16 deletions

4
src/api/auth.js Normal file
View File

@@ -0,0 +1,4 @@
import { userHttp } from './http'
export const loginWithPassword = (username, password) =>
userHttp.post('/auth/login', { username, password })