In this tutorial we will show you how to generate a development token for the self-hosted PowerSync Service.
Development tokens are useful for:
Development tokens can be used either with the
Development tokens can be generated via either
Generate a SharedSecret
To generate a SharedSecret, you can use this Online JWS key generator:
You don’t need to edit the default payload in the Online JWS key generator.
You simply need to obtain the generated SharedSecret
value.
Generate JWS Keys
SharedSecret
valueUsing an online key generator for secrets in a production environment is not recommended.
Update powersync.yaml
Update the k
value in the jwks keys in your powersync.yaml
config file with the SharedSecret
value copied in the previous step:
Generate a development token
test-client
directory, run the following commands:
test-client
directory with your updated powersync.yaml
config file: