mirror of
https://github.com/standardnotes/server
synced 2026-10-22 00:03:36 -04:00
fix(syncing-server): calling auth server for user key params
This commit is contained in:
@@ -9,15 +9,14 @@ export class AuthHttpService implements AuthHttpServiceInterface {
|
||||
private authServerUrl: string,
|
||||
) {}
|
||||
|
||||
async getUserKeyParams(dto: { email?: string; uuid?: string; authenticated: boolean }): Promise<KeyParamsData> {
|
||||
async getUserKeyParams(userUuid: string): Promise<KeyParamsData> {
|
||||
const keyParamsResponse = await this.httpClient.request({
|
||||
method: 'GET',
|
||||
timeout: 10000,
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
},
|
||||
url: `${this.authServerUrl}/users/params`,
|
||||
params: dto,
|
||||
url: `${this.authServerUrl}/users/params?uuid=${userUuid}`,
|
||||
validateStatus:
|
||||
/* istanbul ignore next */
|
||||
(status: number) => status >= 200 && status < 500,
|
||||
|
||||
Reference in New Issue
Block a user