Closed wojtasss closed 2 years ago
@wojtasss sorry for the late reaction. Can you tell me which ember version you are using?
@wojtasss this should work:
import Base from 'ember-simple-auth/authenticators/base';
import fetch from 'fetch';
import { storageFor } from 'ember-local-storage';
export default class JwtAuthenticator extends Base {
serverTokenEndpoint = '/api/v1/auth'
@storageFor('auth') storage
...
this.get('storage').reset() // <-- here error occurs, reset is not a function in browser console
...
}
@wojtasss I'm closing the issue. If it's still a problem please reopen!
set and get values from storagefor('storage') works without problem, but when I try use reset() or clear() then error occurs.
"ember-local-storage": "^1.7.2",