gin-oauth2 | Gin Framework users | OAuth library
kandi X-RAY | gin-oauth2 Summary
kandi X-RAY | gin-oauth2 Summary
Middleware for Gin Framework users who also want to use OAuth2
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gin-oauth2
gin-oauth2 Key Features
gin-oauth2 Examples and Code Snippets
Community Discussions
Trending Discussions on gin-oauth2
QUESTION
I'm trying to install a 'Log in with LinkedIn' functionality into a React app. Therefore I've used npx create-react-app kekap
and ran npm install nvh95/react-linkedin-login-oauth2#pull/42/head
, considering the current version install of react-linkedin-login-oauth2 wasn't working. After adding the sample files as proposed in the GitHub readme as a means of testing the application can't seem to find the module.
Failed to compile.
./src/App.js Module not found: Can't resolve 'react-linkedin-login-oauth2' in 'D:\workspaces\kekap\src'
My App.js:
...ANSWER
Answered 2021-Jun-01 at 16:54The following works fine on my local machine:
npx create-react-app kekap
.cd kekap
.- Replaced the created
App.js
with your providedApp.js
. - Replaced the created
package.json
with your providedpackage.json
. npm install
(just that, notnpm install nvh95/react-linkedin-login-oauth2#pull/42/head
).- After running the above,
react-linkedin-login-oauth2
should be present undernode_modules
. If it isn't, you would probably get an error message saying that it wasn't installed (which may happen with earlier npm versions).
- After running the above,
npm start
.
Note that by "works fine" I mean that the react app is launched with no errors.
However, as opposed to the demo app, there's no Linkedin sign-in button.
The reason is that your provided App.js
is different than the one in the demo App.js
you linked to, which uses an additional component named LinkedInPage
.
To make such a button appear, we nevertheless don't need that additional LinkedInPage
component. All we need to do is use the provided LinkedIn
component (which comes with the npm module), so App.js
should become:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gin-oauth2
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page