Skip to content
Discussion options

You must be logged in to vote

The compound_id is just a hash ganerated with node crypto module and it ensures that there is only one instance of an OAuth account in a way that works across different databases.

This is how it works with the default adapter:

const compoundId = createHash("sha256")
  .update(`${providerId}:${providerAccountId}`)
  .digest("hex")

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ken880guchi
Comment options

Answer selected by ken880guchi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants