UNPKG
magic-helper
Version:
latest (1.0.0)
1.0.0
this is magic helper
magic-helper
/
src
/
common
/
auth.ts
6 lines
•
234 B
text/typescript
View Raw
1
2
3
4
5
6
import
{ getParams }
from
'./params'
// 获取宿主传回的授权信息
export
const
getAuthInfo
= (
) => {
const
{ authCtxCode, authorization, projectCode } =
getParams
()
return
{ authCtxCode, authorization, projectCode } }