mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 10:29:52 +00:00
refreshToken -> RefreshToken
This commit is contained in:
@@ -73,7 +73,7 @@ export const selectOrganization = async (data: {
|
||||
}) => {
|
||||
const { data: res } = await apiRequest.post<{
|
||||
token: string;
|
||||
refreshToken: string;
|
||||
RefreshToken: string;
|
||||
isMfaEnabled: boolean;
|
||||
mfaMethod?: MfaMethod;
|
||||
}>("/api/v3/auth/select-organization", data);
|
||||
|
||||
@@ -76,7 +76,7 @@ export const PasswordStep = ({
|
||||
// case: organization ID is present from the provider auth token -- select the org and use the new jwt token in the CLI, then navigate to the org
|
||||
if (organizationId) {
|
||||
const finishWithOrgWorkflow = async () => {
|
||||
const { token, isMfaEnabled, mfaMethod, refreshToken } = await selectOrganization({
|
||||
const { token, isMfaEnabled, mfaMethod, RefreshToken } = await selectOrganization({
|
||||
organizationId
|
||||
});
|
||||
|
||||
@@ -97,7 +97,7 @@ export const PasswordStep = ({
|
||||
privateKey,
|
||||
email,
|
||||
JTWToken: token,
|
||||
refreshToken
|
||||
RefreshToken
|
||||
};
|
||||
await instance.post(cliUrl, payload).catch(() => {
|
||||
// if error happens to communicate we set the token with an expiry in session storage
|
||||
@@ -190,7 +190,7 @@ export const PasswordStep = ({
|
||||
// case: organization ID is present from the provider auth token -- select the org and use the new jwt token in the CLI, then navigate to the org
|
||||
if (organizationId) {
|
||||
const finishWithOrgWorkflow = async () => {
|
||||
const { token, isMfaEnabled, mfaMethod, refreshToken } = await selectOrganization({
|
||||
const { token, isMfaEnabled, mfaMethod, RefreshToken } = await selectOrganization({
|
||||
organizationId
|
||||
});
|
||||
|
||||
@@ -210,7 +210,7 @@ export const PasswordStep = ({
|
||||
const payload = {
|
||||
...isCliLoginSuccessful.loginResponse,
|
||||
JTWToken: token,
|
||||
refreshToken
|
||||
RefreshToken
|
||||
};
|
||||
await instance.post(cliUrl, payload).catch(() => {
|
||||
// if error happens to communicate we set the token with an expiry in session storage
|
||||
|
||||
@@ -112,7 +112,7 @@ export const SelectOrganizationSection = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
const { token, isMfaEnabled, mfaMethod, refreshToken } = await selectOrg
|
||||
const { token, isMfaEnabled, mfaMethod, RefreshToken } = await selectOrg
|
||||
.mutateAsync({
|
||||
organizationId: organization.id,
|
||||
userAgent: callbackPort ? UserAgentType.CLI : undefined
|
||||
@@ -152,7 +152,7 @@ export const SelectOrganizationSection = () => {
|
||||
JTWToken: token,
|
||||
email: user?.email,
|
||||
privateKey,
|
||||
refreshToken
|
||||
RefreshToken
|
||||
} as IsCliLoginSuccessful["loginResponse"];
|
||||
|
||||
// send request to server endpoint
|
||||
|
||||
Reference in New Issue
Block a user