Class: Devise::Strategies::PasskeyReauthentication

Inherits:
PasskeyAuthenticatable show all
Defined in:
lib/devise/passkeys/reauthentication_strategy.rb

Instance Method Summary collapse

Methods inherited from PasskeyAuthenticatable

#authenticate!, #credential_finder, #raw_credential, #record_passkey_use, #store?, #valid?

Instance Method Details

#authentication_challenge_keyObject



9
10
11
# File 'lib/devise/passkeys/reauthentication_strategy.rb', line 9

def authentication_challenge_key
  "#{mapping.singular}_current_reauthentication_challenge"
end

#clean_up_csrf?Boolean

Reauthentication runs through Authentication (user_set) as part of its cycle, which would normally reset CSRF data in the session

Returns:

  • (Boolean)


16
17
18
# File 'lib/devise/passkeys/reauthentication_strategy.rb', line 16

def clean_up_csrf?
  false
end