mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
fix authenticated rowy run calls
This commit is contained in:
@@ -93,7 +93,7 @@ export const rowyRunAtom = atom((get) => {
|
||||
const { method, path } = route;
|
||||
let url = serviceUrl + path;
|
||||
if (params && params.length > 0) url = url + "/" + params.join("/");
|
||||
|
||||
console.log(authToken);
|
||||
const response = await fetch(url, {
|
||||
method: method,
|
||||
mode: "cors",
|
||||
@@ -101,7 +101,7 @@ export const rowyRunAtom = atom((get) => {
|
||||
credentials: "same-origin",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
Authorization: "Bearer " + authToken,
|
||||
Authorization: "Bearer " + authToken.token,
|
||||
},
|
||||
redirect: "follow",
|
||||
referrerPolicy: "no-referrer",
|
||||
|
||||
Reference in New Issue
Block a user