onfido v0.2.0 Onfido.Resources.SdkToken

Link to this section Summary

Functions

Generate a token for the SDK to use (expires after 90 minutes)

Link to this section Functions

Link to this function

generate(params)

Generate a token for the SDK to use (expires after 90 minutes)

Example

  Onfido.Resources.SdkToken.generate(%{
    applicant_id: "<applicant-id>",
    referrer: "https://url-where-javascript-sdk-used.com"
  })