/** * Copyright (c) 2023 - 2021 The Nuinalp Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ import { Model } from '@nuinalp/api-core/browser'; import ISetIdResponse from '../../types/set.session.id.interface'; export default class OAuth extends Model { protected static adapter: any; /** * Get Access and refresh token. * @param {String} sessionId - The Nuinalp Accounts oAuth2 Code * @returns Return the access and refresh token. */ static setSessionId(sessionId: string, state: string): Promise; /** * Refresh the access token * @param {String} refreshToken - The Nuinalp Accounts oAuth2 refres_token * @returns Return the access and refresh token. */ static refreshSession(refreshToken: string): Promise; /** * SignOut */ static signOut(): Promise; }