signupmethod of the
civicglobal object, passing in the type of scope-request to resolve.
BASIC_SIGNUPtype, which requests your user’s verified email address. You can find details on all supported scope request types here.
signupmethod, the Civic front-end library opens a modal dialog displaying a Civic Wallet QR code or a button to open the Civic App if viewed on a mobile browser. This QR code/app link is generated specifically for this scope-request and can only be used once.
sendAuthCodetoBackEndyour event handler code will probably look very similar to this:
npm install civic-sip-apiand initialize the civic-sip-api npm package into your Node.js application with your account details:
User data is returned to your server encrypted with your secret and signed by Civic. The Civic server SDK verifies and decrypts it transparently. Also, for security reasons a JWT token can only be used once for user data exchange. If the token is exchanged and user data needs to be fetched again, a new request must be approved by the user.