Skip to content

User Tokens

benloh edited this page Jun 1, 2025 · 1 revision

User Tokens

The new "Advanced" panel can now be used to generate tokens.

(Historically, user tokens were defined either by using the web console ncMakeTokens command or to use nc-multiplex's UI tool.)

secretKey

By default, tokens are project-template-specific. The project has a secretKey string defined in the template that is used to create a unique hash for the user token.

  • secretKey can be any string less than 12 characters.
  • Best practice is to define a secretKey for every project that needs a unique token.
  • If you want to create tokens that can be used across multiple projects, e.g. tokens that can be used across all the projects in a classroom, just use the same secretKey for each classroom's project.
  • If secretKey is not defined in the template, tokens can still be generated, but the tokens can then be used on any other project that does not have secretKey defined. (Under the hood, the hash uses just the classId and the projId as the secretKey, skipping the project secretKey).
    • If secretKey is not defined, the "Shareable" tokens checkbox will be automatically checked and disabled, and a warning message displayed. screenshot_192
Clone this wiki locally