-
Dexie Cloud works great with the built-in magic code email auth, but I want to make it work with my own existing authorization. I'm using the Dexie Cloud, and Sveltekit latest versions. I configured the fetchTokens function, and provided it a POST endpoint which is being hit correctly with the "claims" correctly filled in, and the public key is there too. The sign in POST is being made to the Dexie Cloud end point, which is this: Token Request
Token ResponseI can examine the response structure, which has cookies in it and other stuff. It looks ok.
Crash Dump
Remembering that this is a fetch which is forwarding the results of the first fetch, it seems like it's failing because it's trying to tinker with the response, adding cookies or headers, looking at the crash. So I tried to clone "res", then pass the clone back, but that doesn't help.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Some progress:
|
Beta Was this translation helpful? Give feedback.
-
Got it. I'm mixing promises with waits, numpty error. The fetchTokens callback should be:
|
Beta Was this translation helpful? Give feedback.
Got it. I'm mixing promises with waits, numpty error.
The fetchTokens callback should be: