# `oidcc_scope`
[🔗](https://github.com/erlef/oidcc/blob/ee3434ddec86c14471af8f8a8f159971e654da3c
/src/oidcc_scope.erl#L4)

OpenID Scope Utilities

# `scopes`
*since 3.0.0* 

```elixir
-type scopes() :: [nonempty_binary() | atom() | nonempty_string()].
```

# `t`
*since 3.0.0* 

```elixir
-type t() :: binary().
```

# `parse`
*since 3.0.0* 

```elixir
-spec parse(Scope :: t()) -> scopes().
```

Parse `t:t/0` into `t:scopes/0`.

## Examples

```erlang
[<<"openid">>, <<"profile">>] = oidcc_scope:parse(<<"openid profile">>).
```

# `scopes_to_bin`
*since 3.0.0* 

```elixir
-spec scopes_to_bin(Scopes :: scopes()) -> t().
```

Compose `t:scopes/0` into `t:t/0`.

## Examples

```erlang
<<"openid profile email">> = oidcc_scope:scopes_to_bin(
  [<<"openid">>, profile, "email"]).
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
