Skip to content

Commit

Permalink
expose previous code in oauth tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
patatoid committed Dec 12, 2024
1 parent c26c849 commit 4c67dc4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/boruta/oauth/schemas/token.ex
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ defmodule Boruta.Oauth.Token do
refresh_token_revoked_at: nil,
code_challenge: nil,
code_challenge_hash: nil,
code_challenge_method: nil
code_challenge_method: nil,
previous_code: nil

# TODO manage nil attribute values and watch for aftereffects of them
@type t :: %__MODULE__{
Expand All @@ -58,7 +59,8 @@ defmodule Boruta.Oauth.Token do
code_challenge_method: String.t() | nil,
inserted_at: DateTime.t() | nil,
revoked_at: DateTime.t() | nil,
refresh_token_revoked_at: DateTime.t() | nil
refresh_token_revoked_at: DateTime.t() | nil,
previous_code: String.t() | nil
}

@doc """
Expand Down

0 comments on commit 4c67dc4

Please sign in to comment.