fix: use GET for refresh_tokens

This commit is contained in:
swve 2024-01-28 22:34:49 +01:00
parent 0add94c6a5
commit a130596dda
2 changed files with 3 additions and 3 deletions

View file

@ -82,7 +82,7 @@ export async function getUserSession(token: string): Promise<any> {
export async function getNewAccessTokenUsingRefreshToken(): Promise<any> {
const requestOptions: any = {
method: "POST",
method: "GET",
redirect: "follow",
credentials: "include",
};
@ -94,7 +94,7 @@ export async function getNewAccessTokenUsingRefreshToken(): Promise<any> {
export async function getNewAccessTokenUsingRefreshTokenServer(refresh_token_cookie: any): Promise<any> {
const requestOptions: any = {
method: "POST",
method: "GET",
redirect: "follow",
headers: {
Cookie: `refresh_token_cookie=${refresh_token_cookie}`,