Module: ShopifyApp::UserSessionStorageWithScopes
- Extended by:
- ActiveSupport::Concern
- Includes:
- SessionStorage
- Included in:
- User
- Defined in:
- lib/shopify_app/session/user_session_storage_with_scopes.rb
Instance Method Summary collapse
- #access_scopes ⇒ Object
- #access_scopes=(scopes) ⇒ Object
- #expires_at ⇒ Object
- #expires_at=(expires_at) ⇒ Object
Methods included from SessionStorage
Instance Method Details
#access_scopes ⇒ Object
71 72 73 74 75 |
# File 'lib/shopify_app/session/user_session_storage_with_scopes.rb', line 71 def access_scopes super rescue NotImplementedError, NoMethodError raise NotImplementedError, "#access_scopes= must be defined to hook into stored access scopes" end |
#access_scopes=(scopes) ⇒ Object
65 66 67 68 69 |
# File 'lib/shopify_app/session/user_session_storage_with_scopes.rb', line 65 def access_scopes=(scopes) super(scopes) rescue NotImplementedError, NoMethodError raise NotImplementedError, "#access_scopes= must be defined to handle storing access scopes: #{scopes}" end |
#expires_at ⇒ Object
86 87 88 89 90 91 92 93 94 |
# File 'lib/shopify_app/session/user_session_storage_with_scopes.rb', line 86 def expires_at super rescue NotImplementedError, NoMethodError if ShopifyApp.configuration.check_session_expiry_date raise NotImplementedError, "#expires_at must be defined to check the session expiry date" end nil end |
#expires_at=(expires_at) ⇒ Object
77 78 79 80 81 82 83 84 |
# File 'lib/shopify_app/session/user_session_storage_with_scopes.rb', line 77 def expires_at=(expires_at) super rescue NotImplementedError, NoMethodError if ShopifyApp.configuration.check_session_expiry_date raise NotImplementedError, "#expires_at= must be defined to handle storing the session expiry date" end end |