File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
app/models/devise_token_auth/concerns Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -88,19 +88,19 @@ def send_unlock_instructions(opts = {})
88
88
send_devise_notification ( :unlock_instructions , raw , opts )
89
89
raw
90
90
end
91
+ end
91
92
92
- def create_token ( client : nil , lifespan : nil , cost : nil , **token_extras )
93
- token = DeviseTokenAuth ::TokenFactory . create ( client : client , lifespan : lifespan , cost : cost )
93
+ def create_token ( client : nil , lifespan : nil , cost : nil , **token_extras )
94
+ token = DeviseTokenAuth ::TokenFactory . create ( client : client , lifespan : lifespan , cost : cost )
94
95
95
- tokens [ token . client ] = {
96
- token : token . token_hash ,
97
- expiry : token . expiry
98
- } . merge! ( token_extras )
96
+ tokens [ token . client ] = {
97
+ token : token . token_hash ,
98
+ expiry : token . expiry
99
+ } . merge! ( token_extras )
99
100
100
- clean_old_tokens
101
+ clean_old_tokens
101
102
102
- token
103
- end
103
+ token
104
104
end
105
105
106
106
def valid_token? ( token , client = 'default' )
You can’t perform that action at this time.
0 commit comments