func (code *OAuth2AuthorizationCode) GenerateRedirectURI(state string) (redirect *url.URL, err error) {
	if redirect, err = url.Parse(code.RedirectURI); err != nil {
		return
	}
	q := redirect.Query()
	if state != "" {
		q.Set("state", state)
	}
	q.Set("code", code.Code)
	redirect.RawQuery = q.Encode()
	return
}
// GenerateRedirectURI generates a redirect URI for a successful authorization request. State will be used if not empty.
GenerateRedirectURI generates a redirect URI for a successful authorization request. State will be used if not empty.
// GenerateRedirectURI generates a redirect URI for a successful authorization request . State will be used if not empty .
func (code *OAuth2AuthorizationCode) GenerateRedirectURI(state string) (redirect *url.URL, err error) {
	if redirect, err = url.Parse(code.RedirectURI); err != nil {
		return
	}
	q := redirect.Query()
	if state != "" {
		q.Set("state", state)
	}
	q.Set("code", code.Code)
	redirect.RawQuery = q.Encode()
	return
}
func ( code * OAuth2AuthorizationCode ) GenerateRedirectURI ( state string ) ( redirect * url . URL , err error ) { if redirect , err = url . Parse ( code . RedirectURI ) ; err != nil { return } q := redirect . Query ( ) if state != " " { q . Set ( " " , state ) } q . Set ( " " , code . Code ) redirect . RawQuery = q . Encode ( ) return }
GenerateRedirectURI generates a redirect URI for a successful authorization request.
GenerateRedirectURI generates a redirect URI for a successful authorization request .