PublicToken
. For example, you can initiate email magic link and OAuth all via the SDK using PublicToken
. This is also very useful for Web3 focused applications that might not want to implement their own backends to handle user verification using our secret ApiKey
.
Streambird(publicToken, options)
to create an instance of the Streambird object. This will be your entrypoint to the rest of the Streambird Javascript SDK. If you use React
, refer to the React SDK Reference.
Your publicToken is required when calling this function since it identifies your App to Streambird.
We will be prefilling example with a sample test PublicToken, pk_test_KJuRUZmh1XC342h1n39gH84MuSZDyD13NfhtDkaY6IfwpQA0H
.
You should replace it with your own PublicToken under API Keys -> Public
.