• 返回获取code的url

    Parameters

    Returns string

    Example

    import * as oauth from 'oauth'
    let codeConfPara: oauth.AuthCodeParameters = {
    client_id: "xxxxx48484283fc25ba0a207ea7",
    scopes: ["read", "wride"],
    state: "ss",
    auth_url: "xxx.com/baas/auth/v1.0/oauth2/authorize",
    redirect_url: "xxx.com"
    }
    let authCodeUrl = oauth.getCodeURL(codeConfPara)