Add more fetch options to HttpRequestOptions #79
Replies: 3 comments 2 replies
-
Can you elaborate on why this is needed? |
Beta Was this translation helpful? Give feedback.
-
@panva Certainly. We expect extremely high resiliency for our auth process -- across tens of millions of MAU, many users end up having clock skew. In order to determine exactly how much clock skew they have, we can use the server's time. You can create a time API for this, but that's an extra request/additional RTT to the server. Alternatively, you can use the I'm starting to lean towards just doing the API, as handling caching is always a pain. But there may be other legitimate reasons to allow specifying some of those options. |
Beta Was this translation helpful? Give feedback.
-
I'm looking for feedback for #94 which would enable you to pass whatever you want to fetch. |
Beta Was this translation helpful? Give feedback.
-
Based on the fetch API, I would like to be able to specify a couple more options to pass to the fetch call during a
discoveryRequest
call. In particular, I'd like to be able to specify thecache
andmode
. Perhaps a way to specify all fetch options in an object, which would then be spread during the fetch invocation.Beta Was this translation helpful? Give feedback.
All reactions