reactjs-oauth
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

SNEK Logo

SNEK - Social Network for Engineers and Knowledged

The SNEK project is an attempt to create a transparent, open-source non-profit platform that allows engineers to categorize and compare. It should enable engineers from adjacent fields to visualize each other's skills through visualization and project identification.
Reactjs-OAuth serves as the component provider for all kind of OAuth authentications and is easily extandable for all kind of OAuth providers.

Report bug · Request feature · Documentation

Codacy Badge

Table of contents

Installation

The system can be installed using the npm install command:

npm install reactjs-oauth

Features

  • GitHub OAuth2 Authentication

Usage

Import Component

import GitHubOAuth from "reactjs-oauth";

Handeling Functions

 // Handle a successful oauth request
 oauthGitHubSuccess = (response) => {
    console.log(response);
 };
  
 // Handle a failed oauth request
 oauthGitHubFailure = (response) => {
   console.log(response);
 };

Render Component

<GitHubOAuth
  authorizationUrl={YourAuthUrl}
  clientId={YourClienId}
  clientSecret={YourClientSecret}
  redirectUri={YourRedirectUri}
  onSuccess={this.oauthGitHubSuccess}
  onFailure={this.oauthGitHubFailure}
/>

Contributing

GitHub last commit GitHub issues GitHub closed issues

Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.

All code should conform to the Code Guide, maintained by SNEK.

Bugs and feature requests

Do you have a bug or a feature request? Please first search for existing and closed issues. If your problem or idea has not been addressed yet, please open a new issue.

Versioning

GitHub package.json version

For reasons of transparency concering our release cycle and in striving to maintain backward compatibility, this repository is maintained under the Semantic Versioning guidelines. Some minor screw ups aside, we try to adhere to those rules whenever possible.

Creators

Avatar pinterid Avatar schettn
David Pinterics Nico Schett

Thanks

We do not have any external contributors yet, but if you want your name to be here, feel free to contribute to our project.

Copyright and license

GitHub repository license

SPDX-License-Identifier: (EUPL-1.2) Copyright © 2019-2020 Simon Prast

Package Sidebar

Install

npm i reactjs-oauth

Weekly Downloads

1

Version

0.2.0

License

EUPL-1.2

Unpacked Size

36.7 kB

Total Files

14

Last publish

Collaborators

  • pinterid