Class: WithAccounts::Jwts::AccessTokensCreating::PrepareAccessTokenPayload

Inherits:
LetsDoThis::Act
  • Object
show all
Defined in:
app/scenarios/with_accounts/jwts/access_tokens_creating/prepare_access_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/access_tokens_creating/prepare_access_token_payload.rb', line 6

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

  { payload: payload }
end