Docs
chromia.com

FUNCTION

valid_scope_name

function valid_scope_name(scope: text): text
Source

Ensures that the scope is valid, also trimming leading and trailing whitespace.

Throws if scope is not valid

Parameters

  • scope — The scope parameter of the auth handler to trim and check

Returns

the valid scope name, trimmed from leading and trailing whitespace

See Also