mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-24 22:03:54 +00:00
13 lines
267 B
TypeScript
13 lines
267 B
TypeScript
import { parseHeaderCert } from '../controller';
|
|
import { AuthModeType } from '../type';
|
|
|
|
export const authCert = async (props: AuthModeType) => {
|
|
const result = await parseHeaderCert(props);
|
|
|
|
return {
|
|
...result,
|
|
isOwner: true,
|
|
canWrite: true
|
|
};
|
|
};
|