approveByToken( )


Approves a pending member using an approval token.

The approveByToken() function returns a Promise that resolves to a session token when the specified member is approved. Tokens must be approved within 30 hours of token creation.

A new member's status is "PENDING" when the site's membership policy is set to manual approval. To learn more about setting your site's membership approval policy, see Editing Your Member Signup Settings.

Use the approvalToken parameter returned from the register() function when calling approveByToken().

Method Declaration
Copy
Method Parameters
tokenstringRequired

Approval token returned by the register() function.

Returns
Return Type:Promise<string>
Was this helpful?
Yes
No