Download wp-calypso/client/auth/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 249 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/auth/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/auth/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/auth/index.js
249 Bytes
| import config from '@automattic/calypso-config'; | |
| import page from '@automattic/calypso-router'; | |
| import { storeToken } from './controller'; | |
| export default () => { | |
| if ( config.isEnabled( 'oauth' ) ) { | |
| page( '/api/oauth/token', storeToken ); | |
| } | |
| }; | |