Class: WeixinAuthorize::ClientStorage
- Inherits:
-
Storage
- Object
- Storage
- WeixinAuthorize::ClientStorage
show all
- Defined in:
- lib/weixin_authorize/adapter/client_storage.rb
Instance Attribute Summary
Attributes inherited from Storage
#client
Instance Method Summary
collapse
Methods inherited from Storage
#authenticate_headers, #http_get_access_token, init_with, #initialize, #set_access_token_for_client
Instance Method Details
#access_token ⇒ Object
18
19
20
21
|
# File 'lib/weixin_authorize/adapter/client_storage.rb', line 18
def access_token
super
client.access_token
end
|
#authenticate ⇒ Object
14
15
16
|
# File 'lib/weixin_authorize/adapter/client_storage.rb', line 14
def authenticate
super
end
|
#token_expired? ⇒ Boolean
9
10
11
12
|
# File 'lib/weixin_authorize/adapter/client_storage.rb', line 9
def token_expired?
client.expired_at <= Time.now.to_i
end
|
#valid? ⇒ Boolean
5
6
7
|
# File 'lib/weixin_authorize/adapter/client_storage.rb', line 5
def valid?
super
end
|