Skip to content

Commit

Permalink
Merge pull request #4 from integration-os/feature/enhance-token-creation
Browse files Browse the repository at this point in the history
chore: update README
  • Loading branch information
paulkr authored Oct 8, 2024
2 parents 0e4d0fa + 1145e23 commit 03609c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,16 @@ from integrationos import AuthKitToken

@app.route('/authkit-token', methods=['POST'])
def create():
payload = {
"group": "org_123", # a meaningful identifier (i.e., organizationId)
"label": "Acme", # a human-friendly label (i.e., organizationName)
}

authKitToken = AuthKitToken("sk_live_12345")
token = authKitToken.create(payload)
token = authKitToken.create()

return token
```

You'll want to switch out the API Key for your own, which will later tell your frontend which integrations you'd like to make available to your users.

You'll also want to populate the `group` and `label` fields depending on how you want to organize and query your users' connected accounts. The Group is especially important as it's used to generate the unique [Connection Key](https://docs.integrationos.com/docs/setup) for the user once they successfully connect an account.
If you pass an `identity` or `identityType` (`user`, `team`, or `organization`), you'll be able to query for all connections scoped to that identity.
The identity is used to generate the unique [Connection Key](https://docs.integrationos.com/docs/setup) for the user once they successfully connect an account.

## Full Documentation

Expand Down
2 changes: 1 addition & 1 deletion integrationos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__all__ = ['AuthKitToken']

__version__ = "1.1.0"
__version__ = "1.1.1"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="integrationos-authkit",
version="1.1.0",
version="1.1.1",
author="IntegrationOS",
author_email="[email protected]",
description="Secure token generation for IntegrationOS AuthKit in Python",
Expand Down

0 comments on commit 03609c9

Please sign in to comment.