trusted-accounts-sdk-node
Advanced tools
Comparing version 1.3.2 to 1.3.3
{ | ||
"name": "trusted-accounts-sdk-node", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "A simple SDK for Trusted Accounts for NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "dist/TrustedAccountsClient.js", |
@@ -14,12 +14,2 @@ # Trusted Accounts SDK for Node.js | ||
```typescript | ||
import TrustedAccountsSDK from 'trusted-accounts-sdk-node'; | ||
const taClient = new TrustedAccountsSDK({ | ||
clientId: 'YOUR_CLIENT_ID', | ||
clientSecret: 'YOUR_CLIENT_SECRET', | ||
redirectUri: 'YOUR_REDIRECT_URL' | ||
}); | ||
``` | ||
### Example Usage | ||
@@ -35,2 +25,3 @@ | ||
"CLIENT_ID", // Your Client ID | ||
"CLIENT_SECRET", // Your Client Secret | ||
"REDIRECT_URL" // Your Redirect URI | ||
@@ -59,10 +50,2 @@ ); | ||
### Retrieve User Data | ||
```typescript | ||
app.get('/user', async (req, res) => { | ||
const user = await taClient.getUser('USER_TRUSTED_ID'); | ||
res.json(user); | ||
}); | ||
``` | ||
**That's it!** You have successfully integrated Trusted Accounts on your platform! 🖖 Try validate yourself and then go to the user list in the [**developer console**](https://developers.trustedaccounts.org/) to find the newly validated user. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15703
48