diff --git a/lib/pigeon/apns/token.ex b/lib/pigeon/apns/token.ex index b796e178..96280ced 100644 --- a/lib/pigeon/apns/token.ex +++ b/lib/pigeon/apns/token.ex @@ -26,7 +26,8 @@ defmodule Pigeon.APNS.Token do @spec get(JWTConfig.t()) :: t def get(%JWTConfig{} = config) do - token_storage_key = config.key_identifier <> ":" <> config.team_id + token_storage_key = + config.key_identifier <> ":" <> config.team_id <> ":" <> config.uri Agent.get_and_update(__MODULE__, fn map -> {timestamp, saved_token} = Map.get(map, token_storage_key, {0, nil})