⚡️ Demo application showcasing the utilization of Openfort session keys & player accounts in tandem with authentication/wallet creation through Particle Auth. Specifically, this application facilitates the creation of a wallet/identity with Particle, which is then used to create an Openfort player, upon which a session key can be generated to test within a gasless and popupless NFT mint.
Built using Particle Auth, Openfort, Typescript, and Ethers.
Particle Auth, a component of Particle Network's Wallet-as-a-Service, enables seamless onboarding to an application-embedded MPC-TSS/AA wallet facilitated by social login, such as Google, GitHub, email, phone number, etc.
👉 Try the demo: https://web-demo.particle.network
👉 Learn more about Particle Network: https://particle.network
git clone https://github.com/TABASCOatw/particle-openfort-demo.git
yarn install
OR
npm install
This project requires a number of keys from Particle Network and WalletConnect to be defined in .env
. The following should be defined:
NEXT_PUBLIC_APP_ID
, the ID of the corresponding application in your Particle Network dashboard.NEXT_PUBLIC_PROJECT_ID
, the ID of the corresponding project in your Particle Network dashboard.NEXT_PUBLIC_CLIENT_KEY
, the client key of the corresponding project in your Particle Network dashboard.NEXTAUTH_OPENFORT_SECRET_KEY
, the secret API key of your Openfort project found in the Openfort dashboardNEXTAUTH_OPENFORT_CONTRACT
, the contract ID of a whitelisted/specified contract within the Openfort dashboardNEXTAUTH_OPENFORT_POLICY
, the policy ID of a gas policy created within the Openfort dashboardNEXT_PUBLIC_OPENFORT_PUBLIC_KEY
, the publishable (public) API key corresponding with a project created within the Openfort dashboardPARTICLE_SECRET_PROJECT_ID
, the server key of your Particle project created through the Particle Network dashboard
npm run dev
OR
yarn dev
Originally featured in "Utilizing Session Keys with Particle WaaS and Openfort"
This repository was originally derived from an example outlined within this demo.