Class: Toolchest::Auth::Token::EnvTokenRecord
- Inherits:
-
Struct
- Object
- Struct
- Toolchest::Auth::Token::EnvTokenRecord
- Defined in:
- lib/toolchest/auth/token.rb
Instance Method Summary collapse
Instance Method Details
#owner_type ⇒ Object
64 65 66 67 |
# File 'lib/toolchest/auth/token.rb', line 64 def owner_type type, _ = owner_id&.split(":", 2) type end |
#scopes ⇒ Object
69 |
# File 'lib/toolchest/auth/token.rb', line 69 def scopes = ENV.fetch("TOOLCHEST_TOKEN_SCOPES", "").split(" ").reject(&:empty?) |