Updated on 2024-10-09 GMT+08:00

General Procedure

  1. Create a function.

    The function will be used for custom authentication.

  2. Create a custom authorizer.

    Set the authorizer type to Frontend, and select the function created in the previous step.

  3. Create an API.

    Set authentication mode to App, enable Two-Factor Authentication, and select the custom authorizer created in the previous step.

  4. Create a credential.

    APIs that use app authentication require a credential to call. Create a credential to generate an ID and key/secret pair.

  5. Bind the credential to the created API.

    APIs that use app authentication can be called only with bound credentials.

  6. Verify the API.

    Call the API to check whether two-factor authentication is configured successfully.