Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nodejs sign-request example #53

Merged
merged 2 commits into from
Mar 24, 2022
Merged

Add nodejs sign-request example #53

merged 2 commits into from
Mar 24, 2022

Conversation

alexheretic
Copy link
Contributor

#51 for nodejs

nodejs request signature example

Sends a signed request to https://api.truelayer-sandbox.com/test-signature.

Run

First resolve dependencies, run

yarn

Set environment variables:

  • ACCESS_TOKEN A valid JWT access token for payments scope docs.
  • KID The certificate/key UUID for associated with your public key uploaded to console.truelayer.com.
  • PRIVATE_KEY Private key PEM string that matches the KID & uploaded public key.
    Should have the same format as this example private key.
$ node index.js
Sending {...

204 ✓

@alexheretic alexheretic requested a review from a team as a code owner March 23, 2022 16:58
@alexheretic alexheretic requested a review from a team March 23, 2022 16:58
@alexheretic alexheretic merged commit dab1c42 into main Mar 24, 2022
@alexheretic alexheretic deleted the node-sign-request branch March 24, 2022 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants