Module: Devise::Auth0

Extended by:
Dry::Configurable
Defined in:
lib/devise/auth0.rb,
lib/devise/auth0/rails.rb,
lib/devise/auth0/token.rb,
lib/devise/auth0/client.rb,
lib/devise/auth0/helpers.rb,
lib/devise/auth0/version.rb,
lib/devise/auth0/exceptions.rb,
lib/devise/auth0/controllers/helpers.rb

Overview

Auth0 extension for devise

Defined Under Namespace

Modules: Controllers, Helpers Classes: AccessDenied, Client, Engine, Error, Token

Constant Summary collapse

VERSION =

x-release-please-version

"1.2.1"

Class Method Summary collapse

Class Method Details

.gem_versionObject



8
9
10
# File 'lib/devise/auth0/version.rb', line 8

def gem_version
  Gem::Version.new(VERSION)
end

.logout(record) ⇒ Object



49
50
51
52
53
# File 'lib/devise/auth0.rb', line 49

def logout(record)
  record.class.auth0_client.grants(user_id: record.auth0_id).each do |grant|
    record.class.auth0_client.delete_grant(grant["id"], record.auth0_id)
  end
end