Module: ShopifyApp::UserSessionStorageWithScopes

Extended by:
ActiveSupport::Concern
Includes:
SessionStorage
Defined in:
lib/shopify_app/session/user_session_storage_with_scopes.rb

Instance Method Summary collapse

Methods included from SessionStorage

#with_shopify_session

Instance Method Details

#access_scopesObject



77
78
79
80
81
# File 'lib/shopify_app/session/user_session_storage_with_scopes.rb', line 77

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



71
72
73
74
75
# File 'lib/shopify_app/session/user_session_storage_with_scopes.rb', line 71

def access_scopes=(scopes)
  super(scopes)
rescue NotImplementedError, NoMethodError
  raise NotImplementedError, "#access_scopes= must be defined to handle storing access scopes: #{scopes}"
end

#expires_atObject



92
93
94
95
96
97
98
99
100
# File 'lib/shopify_app/session/user_session_storage_with_scopes.rb', line 92

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



83
84
85
86
87
88
89
90
# File 'lib/shopify_app/session/user_session_storage_with_scopes.rb', line 83

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