# require_valid_scope_name · FT4 Rell API · Chromia Docs (concept)

> function require_ valid_ scope_ name(name: text) Verifies that the scope name is valid, i.e. that it matches this regex: /^\w+(\.\w+)*$/ any single word (m

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.auth/require_valid_scope_name/

FUNCTION

# require\_valid\_scope\_name

```signature
function require_valid_scope_name(name: text)
```

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/core/auth/module.rell#lines-422)

Verifies that the scope name is valid, i.e. that it matches this regex:
`/^\w+(\.\w+)*$/`
any single word (matched by `\w+`) or sequence of such words separated by dots is valid.
`name` may not start or end with a dot.

Throws `"INVALID SCOPE"` if the name does not match

**Parameters**

* **name** — the name to check

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-rell/-f-t4%20-library/lib.ft4.core.auth/require_valid_scope_name.html)Generated API reference, mirrored from the live docs
