mirror of
https://github.com/SigNoz/signoz.git
synced 2026-02-03 08:33:26 +00:00
## 📄 Summary
- Instead of relying on JWT for session management, we are adding another token system: opaque. This gives the benefits of expiration and revocation.
- We are now ensuring that emails are regex checked throughout the backend.
- Support has been added for OIDC protocol
25 lines
667 B
TypeScript
25 lines
667 B
TypeScript
import axios from 'api';
|
|
import { ErrorResponseHandlerV2 } from 'api/ErrorResponseHandlerV2';
|
|
import { AxiosError } from 'axios';
|
|
import { ErrorV2Resp, RawSuccessResponse, SuccessResponseV2 } from 'types/api';
|
|
import { GettableAuthDomain } from 'types/api/v1/domains/list';
|
|
|
|
const listAllDomain = async (): Promise<
|
|
SuccessResponseV2<GettableAuthDomain[]>
|
|
> => {
|
|
try {
|
|
const response = await axios.get<RawSuccessResponse<GettableAuthDomain[]>>(
|
|
`/domains`,
|
|
);
|
|
|
|
return {
|
|
httpStatusCode: response.status,
|
|
data: response.data.data,
|
|
};
|
|
} catch (error) {
|
|
ErrorResponseHandlerV2(error as AxiosError<ErrorV2Resp>);
|
|
}
|
|
};
|
|
|
|
export default listAllDomain;
|