feat(oauth): Add option to logout from OpenID Connect provider
* Fixes #598 Signed-off-by: Marvin A. Ruder <signed@mruder.dev>
This commit is contained in:
@@ -29,8 +29,10 @@ const signUp = async (email: string, username: string, password: string) => {
|
||||
};
|
||||
|
||||
const signOut = async () => {
|
||||
await api.post("/auth/signOut");
|
||||
window.location.reload();
|
||||
const response = await api.post("/auth/signOut");
|
||||
|
||||
if (URL.canParse(response.data?.redirectURI)) window.location.href = response.data.redirectURI;
|
||||
else window.location.reload();
|
||||
};
|
||||
|
||||
const refreshAccessToken = async () => {
|
||||
|
||||
Reference in New Issue
Block a user