Skip to content

Commit

Permalink
Expand readme on key location
Browse files Browse the repository at this point in the history
  • Loading branch information
danschultzer committed Aug 5, 2023
1 parent a61137e commit 11e12b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,13 @@ end
If the Authorization Header was verified, you'll be able to retrieve the current resource owner or access token.

```elixir
ExOauth2Provider.Plug.current_access_token(conn) # access the token in the default location
ExOauth2Provider.Plug.current_access_token(conn, :secret) # access the token in the secret location
ExOauth2Provider.Plug.current_access_token(conn) # access the token in the `:default` location
ExOauth2Provider.Plug.current_access_token(conn, :custom) # access the token in the `:custom` location if set as `:key` option in `plug ExOauth2Provider.Plug.VerifyHeader`
```

```elixir
ExOauth2Provider.Plug.current_resource_owner(conn) # Access the loaded resource owner in the default location
ExOauth2Provider.Plug.current_resource_owner(conn, :secret) # Access the loaded resource owner in the secret location
ExOauth2Provider.Plug.current_resource_owner(conn) # Access the loaded resource owner in the `:default` location
ExOauth2Provider.Plug.current_resource_owner(conn, :custom) # Access the loaded resource owner in the `:secret` location if set as `:key` option in `plug ExOauth2Provider.Plug.VerifyHeader`
```

### Custom access token generator
Expand Down

0 comments on commit 11e12b8

Please sign in to comment.