Can start Matrix authentication from UI
This commit is contained in:
15
matrixgw_frontend/src/api/MatrixLinkApi.ts
Normal file
15
matrixgw_frontend/src/api/MatrixLinkApi.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { APIClient } from "./ApiClient";
|
||||
|
||||
export class MatrixLinkApi {
|
||||
/**
|
||||
* Start Matrix Account login
|
||||
*/
|
||||
static async StartAuth(): Promise<{ url: string }> {
|
||||
return (
|
||||
await APIClient.exec({
|
||||
uri: "/matrix_link/start_auth",
|
||||
method: "POST",
|
||||
})
|
||||
).data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user