Class: Toolchest::Auth::Token::EnvTokenRecord

Inherits:
Struct
  • Object
show all
Defined in:
lib/toolchest/auth/token.rb

Instance Method Summary collapse

Instance Method Details

#owner_typeObject



64
65
66
67
# File 'lib/toolchest/auth/token.rb', line 64

def owner_type
  type, _ = owner_id&.split(":", 2)
  type
end

#scopesObject



69
# File 'lib/toolchest/auth/token.rb', line 69

def scopes = ENV.fetch("TOOLCHEST_TOKEN_SCOPES", "").split(" ").reject(&:empty?)