更新时间:2023-12-03 09:19:46
我建议您使用 everyauth 它基于oauth构建,并支持LinkedIn.它负责所有身份验证,并且易于配置.配置完成后,客户端将通过/oauth/linkedin
之类的链接进行身份验证,并且在身份验证之后,您可以将令牌包含在快速路由中.
I suggest you to use everyauth which is built on oauth and supports LinkedIn. It takes cares of all the authentication and it is configured easily. After the configuration, the client will be authenticated by a link like /oauth/linkedin
and after authentication you can have the tokens in express routes.