A guide to integrate Para into your Next.js application.
ParaProvider
with the ParaModal
into your Next.js application,providing a seamless way to manage user authentication and wallets.
If you haven’t already set up your Next.js app, you can get started by creating a new project via the
Next.js official docs.
(Optional) Adding Transpile Configuration
@getpara/*
).In your next.config.js
, enable the transpilation:ParaProvider
approach.
Environment.BETA
(alias Environment.DEVELOPMENT
) for testing, and
Environment.PROD
(alias Environment.PRODUCTION
) for live use. Select the environment that matches your current
development phase.ParaProvider
and the ParaModal
are client side only components. Use the "use client"
directive at the top of your file to ensure that this component is rendered on the client side. If using an older version of Next.js use the next/dynamic
import to dynamically import the Providers
component with ssr: false
.app/layout.tsx
file in a Next.js app using the App Router or if using the Pages Router, in the _app.tsx
file.
ParaModal
component in any client component within your application and use the ParaProvider
hooks to control it:
BETA
Environment, you can use any email ending in @test.getpara.com
(like
dev@test.getpara.com) or US phone numbers (+1) in the format (area code)-555-xxxx
(like (425)-555-1234). Any OTP
code will work for verification with these test credentials. These credentials are for beta testing only. You can
delete test users anytime in the beta developer console to free up user slots.ParaModalProps
, refer to the customization guide:
Standalone Para Modal Setup