ex_microsoftbot v1.0.0 ExMicrosoftBot.TokenManager

This module is a GenServer that handles getting access token from Microsoft bot framework and also is responsible for refreshing the token before it expires.

Summary

Functions

Refresh the token by making a service call and then scheduling a message to this GenServer before token expires so that it can be refreshed

Get the token that can be used to authorize calls to Microsoft Bot Framework

The time to refresh which is taken from the response of the token

Functions

get_refreshed_state(auth_data, old_state)

Refresh the token by making a service call and then scheduling a message to this GenServer before token expires so that it can be refreshed

get_token()

Get the token that can be used to authorize calls to Microsoft Bot Framework

start_link()
start_link(args)
time_to_refresh_after_in_seconds(map)

The time to refresh which is taken from the response of the token