Class: JWTSessions::StoreAdapters::AbstractStoreAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/jwt_sessions/store_adapters/abstract_store_adapter.rb

Direct Known Subclasses

MemoryStoreAdapter, RedisStoreAdapter

Instance Method Summary collapse

Instance Method Details

#all_refresh_tokens(_namespace) ⇒ Object

Raises:

  • (NotImplementedError)


27
28
29
# File 'lib/jwt_sessions/store_adapters/abstract_store_adapter.rb', line 27

def all_refresh_tokens(_namespace)
  raise NotImplementedError
end

#destroy_access(_uid) ⇒ Object

Raises:

  • (NotImplementedError)


35
36
37
# File 'lib/jwt_sessions/store_adapters/abstract_store_adapter.rb', line 35

def destroy_access(_uid)
  raise NotImplementedError
end

#destroy_refresh(_uid, _namespace) ⇒ Object

Raises:

  • (NotImplementedError)


31
32
33
# File 'lib/jwt_sessions/store_adapters/abstract_store_adapter.rb', line 31

def destroy_refresh(_uid, _namespace)
  raise NotImplementedError
end

#fetch_access(_uid) ⇒ Object

Raises:

  • (NotImplementedError)


6
7
8
# File 'lib/jwt_sessions/store_adapters/abstract_store_adapter.rb', line 6

def fetch_access(_uid)
  raise NotImplementedError
end

#fetch_refresh(_uid, _namespace, _first_match) ⇒ Object

Set first_match to true to look up through all namespaces

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/jwt_sessions/store_adapters/abstract_store_adapter.rb', line 15

def fetch_refresh(_uid, _namespace, _first_match)
  raise NotImplementedError
end

#persist_access(_uid, _csrf, _expiration) ⇒ Object

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/jwt_sessions/store_adapters/abstract_store_adapter.rb', line 10

def persist_access(_uid, _csrf, _expiration)
  raise NotImplementedError
end

#persist_refresh(_uid:, _access_expiration:, _access_uid:, _csrf:, _expiration:, _namespace:) ⇒ Object

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/jwt_sessions/store_adapters/abstract_store_adapter.rb', line 19

def persist_refresh(_uid:, _access_expiration:, _access_uid:, _csrf:, _expiration:, _namespace:)
  raise NotImplementedError
end

#update_refresh(_uid:, _access_expiration:, _access_uid:, _csrf:, _namespace:) ⇒ Object

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/jwt_sessions/store_adapters/abstract_store_adapter.rb', line 23

def update_refresh(_uid:, _access_expiration:, _access_uid:, _csrf:, _namespace:)
  raise NotImplementedError
end