# Interface: AuthorizeParams ‹Err

AuthorizeParamsErr›()

# Type parameters:

Err: MogsRes

# Type parameters

Err: MogsRes

# Properties

# scope

scope: string

需要获取权限的 scope,详见 {@link scope 列表 (opens new window)}

todo update the doc link above

Returns: string

# Methods

# Optional complete

complete(res: AuthorizeRes | Err): void

Inherited from MogsParams.complete

接口调用结束的回调函数(调用成功、失败都会执行)

# 参数:

属性 类型
res AuthorizeRes | Err

# 返回值:

void


# Optional fail

fail(err: Err): void

Inherited from MogsParams.fail

接口调用失败的回调函数

# 参数:

属性 类型
err Err

# 返回值:

void


# Optional success

success(res: AuthorizeRes): void

Inherited from MogsParams.success

接口调用成功的回调函数

# 参数:

属性 类型
res AuthorizeRes

AuthorizeRes

属性 类型 描述
errMsg string API 调用成功/失败的消息

# 返回值:

void