diff --git a/lib/oauth2/access_token.ex b/lib/oauth2/access_token.ex index 493474d..65f7bd4 100644 --- a/lib/oauth2/access_token.ex +++ b/lib/oauth2/access_token.ex @@ -29,6 +29,7 @@ defmodule OAuth2.AccessToken do other_params: other_params } + @derive {Inspect, except: [:access_token, :refresh_token]} defstruct access_token: "", refresh_token: nil, expires_at: nil, diff --git a/lib/oauth2/client.ex b/lib/oauth2/client.ex index 59beb12..c264c09 100644 --- a/lib/oauth2/client.ex +++ b/lib/oauth2/client.ex @@ -65,6 +65,7 @@ defmodule OAuth2.Client do token_url: token_url } + @derive {Inspect, except: [:client_secret]} defstruct authorize_url: "/oauth/authorize", client_id: "", client_secret: "",