Class: WithAccounts::Jwts::RefreshTokensCreating::PrepareRefreshTokenPayload

Inherits:
LetsDoThis::Act
  • Object
show all
Defined in:
app/scenarios/with_accounts/jwts/refresh_tokens_creating/prepare_refresh_token_payload.rb

Instance Method Summary collapse

Instance Method Details

#instructions(stage) ⇒ Object



6
7
8
9
10
11
# File 'app/scenarios/with_accounts/jwts/refresh_tokens_creating/prepare_refresh_token_payload.rb', line 6

def instructions(stage)
  payload = { exp: (Time.now + Account::REFRESH_TOKEN_TTL).to_i,
              said: stage..said }

  { payload: payload }
end