# node-wpcom-oauth **Repository Path**: mirrors_Automattic/node-wpcom-oauth ## Basic Information - **Project Name**: node-wpcom-oauth - **Description**: WordPress.com OAuth2 authorization module for Node.js - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-09-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![npm version](https://badge.fury.io/js/wpcom-oauth.svg)](https://badge.fury.io/js/wpcom-oauth) # wpcom-oauth [WordPress.com](http://wordpress.com) OAuth2 **server-side** authorization module for [Node.js](http://www.nodejs.org). The **client-side** counterpart to this module is [`wpcom-oauth-cors`](https://github.com/Automattic/wpcom-oauth-cors). ## Installation ```bash $ npm install wpcom-oauth ``` ## API ### WPOAuth#urlToConnect(resource) Return the url that points to first step for get the access token. ### WPOAuth#code(code) Set the code to request the access token. ### WPOAuth#requestAccessToken(fn) Start the OAuth2 request to WordPress.com and execute the callback function when it's done. ## Simple example application See the [example documentation](./example/Readme.md) to run the app ## License MIT – Copyright 2014 Automattic