"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InMemoryTokenStorage = void 0;
class InMemoryTokenStorage {
    token = void 0;
    constructor(fields) {
        if (fields.token !== undefined) {
            this.token = fields.token;
        }
    }
    /**
     * @param {AccessToken} token
     * @returns {Promise<undefined>}
     */
    async store(token) {
        this.token = token;
        return void 0;
    }
    /**
     * @returns {Promise<undefined | AccessToken>}
     */
    async get() {
        return this.token;
    }
    /**
     * @returns {Promise<undefined>}
     */
    async clear() {
        this.token = void 0;
        return void 0;
    }
}
exports.InMemoryTokenStorage = InMemoryTokenStorage;
//# sourceMappingURL=tokenStorage.js.map