Comments (6)
Raised the request with the above code.
Thank you so much for quick support, Really appreciated
PR: #32
from apple-signin-auth.
Hey! I checked this https://stackoverflow.com/questions/60162485/how-to-configure-node-fetch-to-use-the-company-proxy
And thought about the following:
What if we expose a _setFetchOptions
or _setFetch
functions that allows users to manipulate the fetch params?
This way you would be able to call:
appleSigninAuth._setFetch(nodeFetchProxy);
and it'd set the fetch function
from apple-signin-auth.
Yeah, that would also work like a champ,
But Generally, we set proxies in env variable and any request module just uses it.
Anyways will work for me, let me know if I can work for it or you will take care of it?
from apple-signin-auth.
@NitinHsharma Can you please open a PR with the _setFetch function? (We have a similar function called _getApplePublicKeys)
Make sure you update the docs and keep flow types intact ✨
from apple-signin-auth.
I think this would do:
import rawFetch from 'node-fetch';
/**
* Fetch function
*/
let fetch = rawFetch;
/**
* Sets the fetch function
*
* Can be used to pass a proxy fetch function or to override headers and params
*/
const _setFetch = (fetchFn: Function) => {
fetch = fetchFn;
};
from apple-signin-auth.
Awesome job @NitinHsharma , It's ready now 🚀
from apple-signin-auth.
Related Issues (20)
- verifyIdToken invalid id token public key id ignoreExpiration HOT 5
- Support Cloudflare Worker HOT 2
- Is this OAuth2 client? HOT 1
- revokeAuthorizationToken returns nothing HOT 10
- Support revoking Access Tokens HOT 1
- FetchError: invalid json response body at https://appleid.apple.com/auth/revoke HOT 1
- o.URL is not a constructor HOT 5
- How to get the user details HOT 1
- jsonwebtoken dependency version has security vulnerabilities HOT 7
- Request HOT 1
- Redirect URI HOT 1
- Sign in with apple for Electron HOT 1
- getAuthorizationToken => { error: invalid_client } HOT 5
- Release notes formatting HOT 1
- Error getAuthorizationToken => invalid_client HOT 1
- Structure changes HOT 5
- Next.js error: Global CSS cannot be imported from within node_modules. HOT 2
- Support for validating Sign in with Apple server-to-server notifications HOT 1
- accessToken is not valid. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apple-signin-auth.