Sign In With Other Page
The Sign in With Other Page package (SIWOP) makes it easy to connect Other Page accounts to your app. It can also act as a full drop in replacement of other forms of authentication. Using SIWOP enables your users to login once across all of your apps and bring their Other Page avatars and profile data with them.
Sign in with Other Page adheres to OAuth2.0 and OpenID Connect making it compatible with any platform that supports these standards. Custom implementations can be accomplished using the Connect APIs directly.
Quick Start
View our example NextJS project to easily get started with OP Connect.
Getting Started
Obtain and setup required config
SESSION_SECRET
— a randomly generated, strong password of at least 32 charactersNEXT_PUBLIC_SIWOP_CLIENT_ID
- your client id obtained in the Other Page PortalSIWOP_CLIENT_SECRET
- your client secret obtained in the Other Page PortalNEXT_PUBLIC_SIWOP_REDIRECT_URI
- your redirect_uri, this must match what is defined for your client in the Other Page Portal
The NEXT_PUBLIC_SIWOP_CLIENT_ID
and NEXT_PUBLIC_SIWOP_REDIRECT_URI
must match what is defined for your app in the Other Page Portal.
Install the required dependencies
Configure the client and context
Configure the required server API routes
Create a file inside your Next API folder api/siwop/[...route].ts
.
SIWOP Button
Add the SIWOP button to your app.