Skip to content

Configure oauth expires trigger

Edwin Woudt edited this page Dec 3, 2019 · 3 revisions

Introduction

OAuth connections expire after 90 days. This is a trigger that fires when the OAuth connection expires in a given number of hours. This can be very useful to ensure you renew your OAuth connection in time before your triggers and actions stop working, e.g. by sending you a notification or email at certain intervals.

Note: due to the way this trigger is implemented, it will not be triggered at exactly the given time. Instead it will be triggered the first time IFTTT checks the trigger after the deadline has passed, which could be up to two hours later. Make sure therefore you don't set the trigger too close to the expiry time.

1. Create new trigger

In IFTTT platform, go to API -> Triggers and click on the New trigger button. You can then enter the following details:

  • Name: bunq oauth expires (can be changed to anything you like)
  • Description: This trigger fires a number of given hours before the OAuth connection expires after 90 days. (can be changed to anything you like)
  • Endpoint: choose API and use bunq_oauth_expires in the URL. Note: this must match exactly!

2. Trigger fields

Once the trigger had been created, the first step is to define all trigger fields. There is only one trigger field for this trigger.

Hours
Label: Hours
Description: Number of hours before expiry
Key name: hours
Input type: Text input

3. Verbiage

It doesn't really matter what you put here. A suggestion is to use:

  • the bunq OAuth connection expires in {{fields.hours}} hours

4. Ingredients

By default there already is a 'CreatedAt' ingredient.

There is one additional ingredient, which you can add (highly suggested), but feel free to leave it out if you don't need it.

ExpiresAt
Name: ExpiresAt
Slug: expires_at
Note: Date and time the OAuth connection expires.
Type: Date with time (ISO8601)

5. FInally

Once you are done, go to API -> Endpoint tests and click on the 'Begin test' button. In case all results are green: congratulations, you configured the oauth expires trigger correctly!