Remove getTokenId and userId

This commit is contained in:
J Shamsul Bahri (jibone))
2020-09-24 10:45:11 +08:00
parent 7258144cf9
commit 32def99071
@@ -41,7 +41,6 @@ type CreateOptions = {
};
export type SamlAuthResponse = {
userId: string;
profile: ProfileInfo;
backstageIdentity: BackstageIdentity;
};
@@ -96,11 +95,6 @@ class SamlAuth implements ProfileInfoApi, BackstageIdentityApi, SessionApi {
return session?.backstageIdentity;
}
async getIdToken(options: AuthRequestOptions = {}) {
const session = await this.sessionManager.getSession(options);
return session?.backstageIdentity ?? '';
}
async getProfile(options: AuthRequestOptions = {}) {
const session = await this.sessionManager.getSession(options);
return session?.profile;