Skip to main content

messages.declineUrlAuth

Decline an incoming OAuth authorization request », notifying the server that the user refused the login request.

func (c *Client) MessagesDeclineURLAuth(ctx context.Context, url string) (bool, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.MessagesDeclineURLAuth(ctx, url)
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
URLstringyesThe OAuth deep link from the OAUTH_REQUEST push notification or the oauth_request web event

Returns

bool

References