Skip to content

Commit

Permalink
Update token lifetimes to minutes, not seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
skanderm committed Jul 29, 2024
1 parent 988144f commit 2fdecd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions server/lib/orcasite/notifications/resources/subscriber.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ defmodule Orcasite.Notifications.Subscriber do
identity_field :id

single_use_token? false
# 14 days (in minutes)
token_lifetime 1_209_600
# 4 weeks (in minutes)
token_lifetime 40_320

sender fn _subscriber, _token, _opts ->
# IO.inspect({subscriber, token},
Expand Down
4 changes: 2 additions & 2 deletions server/lib/orcasite/notifications/resources/subscription.ex
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ defmodule Orcasite.Notifications.Subscription do

single_use_token? false
# 14 days (in minutes)
token_lifetime 1_209_600
token_lifetime 40_320

sender fn _subscription, _token, _opts ->
# IO.inspect({subscription, token},
Expand Down Expand Up @@ -100,7 +100,7 @@ defmodule Orcasite.Notifications.Subscription do
end

actions do
defaults [:create, :read, :destroy]
defaults [:destroy, :read, create: :*]

read :available_for_notification do
description """
Expand Down

0 comments on commit 2fdecd8

Please sign in to comment.