chore: resolve lint errors
This commit is contained in:
parent
1537734374
commit
6473cd5af6
3 changed files with 16 additions and 21 deletions
|
|
@ -235,13 +235,13 @@
|
|||
</div>
|
||||
|
||||
<!-- Parameter rows -->
|
||||
<div class="divide-y divide-dividerLight" v-else>
|
||||
<div v-else class="divide-y divide-dividerLight">
|
||||
<HttpKeyValue
|
||||
:show-description="false"
|
||||
v-for="(param, index) in workingAuthRequestParams"
|
||||
:key="`auth-request-param-${param.id}`"
|
||||
v-model:name="param.key"
|
||||
v-model:value="param.value"
|
||||
:show-description="false"
|
||||
:total="workingAuthRequestParams.length"
|
||||
:index="index"
|
||||
:entity-id="param.id"
|
||||
|
|
@ -314,13 +314,13 @@
|
|||
</div>
|
||||
|
||||
<!-- Parameter rows -->
|
||||
<div class="divide-y divide-dividerLight" v-else>
|
||||
<div v-else class="divide-y divide-dividerLight">
|
||||
<HttpKeyValue
|
||||
:show-description="false"
|
||||
v-for="(param, index) in workingTokenRequestParams"
|
||||
:key="`token-request-param-${param.id}`"
|
||||
v-model:name="param.key"
|
||||
v-model:value="param.value"
|
||||
:show-description="false"
|
||||
:total="workingTokenRequestParams.length"
|
||||
:index="index"
|
||||
:entity-id="param.id"
|
||||
|
|
@ -448,13 +448,13 @@
|
|||
</div>
|
||||
|
||||
<!-- Parameter rows -->
|
||||
<div class="divide-y divide-dividerLight" v-else>
|
||||
<div v-else class="divide-y divide-dividerLight">
|
||||
<HttpKeyValue
|
||||
:show-description="false"
|
||||
v-for="(param, index) in workingRefreshRequestParams"
|
||||
:key="`refresh-request-param-${param.id}`"
|
||||
v-model:name="param.key"
|
||||
v-model:value="param.value"
|
||||
:show-description="false"
|
||||
:total="workingRefreshRequestParams.length"
|
||||
:index="index"
|
||||
:entity-id="param.id"
|
||||
|
|
|
|||
|
|
@ -89,9 +89,8 @@ async function getInitialUserDetails(): Promise<
|
|||
> {
|
||||
try {
|
||||
const accessToken = await persistenceService.getLocalConfig("access_token")
|
||||
const refreshToken = await persistenceService.getLocalConfig(
|
||||
"refresh_token"
|
||||
)
|
||||
const refreshToken =
|
||||
await persistenceService.getLocalConfig("refresh_token")
|
||||
|
||||
if (!accessToken || !refreshToken) {
|
||||
return { error: "auth/cookies_not_found" }
|
||||
|
|
@ -224,9 +223,8 @@ export async function setInitialUser() {
|
|||
|
||||
async function refreshToken() {
|
||||
try {
|
||||
const refreshToken = await persistenceService.getLocalConfig(
|
||||
"refresh_token"
|
||||
)
|
||||
const refreshToken =
|
||||
await persistenceService.getLocalConfig("refresh_token")
|
||||
if (!refreshToken) return null
|
||||
|
||||
const { response } = interceptorService.execute({
|
||||
|
|
@ -455,9 +453,8 @@ export const def: AuthPlatformDef = {
|
|||
},
|
||||
|
||||
async signInWithEmailLink(_email: string, url: string) {
|
||||
const deviceIdentifier = await persistenceService.getLocalConfig(
|
||||
"deviceIdentifier"
|
||||
)
|
||||
const deviceIdentifier =
|
||||
await persistenceService.getLocalConfig("deviceIdentifier")
|
||||
|
||||
if (!deviceIdentifier) {
|
||||
throw new Error(
|
||||
|
|
|
|||
|
|
@ -302,9 +302,8 @@ export const def: AuthPlatformDef = {
|
|||
|
||||
const token = searchParams.get("token")
|
||||
|
||||
const deviceIdentifier = await persistenceService.getLocalConfig(
|
||||
"deviceIdentifier"
|
||||
)
|
||||
const deviceIdentifier =
|
||||
await persistenceService.getLocalConfig("deviceIdentifier")
|
||||
|
||||
await axios.post(
|
||||
`${import.meta.env.VITE_BACKEND_API_URL}/auth/verify`,
|
||||
|
|
@ -356,9 +355,8 @@ export const def: AuthPlatformDef = {
|
|||
|
||||
async processMagicLink() {
|
||||
if (this.isSignInWithEmailLink(window.location.href)) {
|
||||
const deviceIdentifier = await persistenceService.getLocalConfig(
|
||||
"deviceIdentifier"
|
||||
)
|
||||
const deviceIdentifier =
|
||||
await persistenceService.getLocalConfig("deviceIdentifier")
|
||||
|
||||
if (!deviceIdentifier) {
|
||||
throw new Error(
|
||||
|
|
|
|||
Loading…
Reference in a new issue