Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ex_oauth2_provider/mixin/expirable.ex
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ defmodule ExOauth2Provider.Mixin.Expirable do
def is_expired?(%{expires_in: nil, inserted_at: _}), do: false
def is_expired?(%struct{expires_in: expires_in, inserted_at: inserted_at}) do
now = SchemaHelpers.__timestamp_for__(struct, :inserted_at)
type = now.__struct__()
type = now.__struct__

inserted_at
|> type.add(expires_in, :second)
Expand Down