wax v0.4.2 Whatsapp.Auth.Server

GenServer para manejo de la generación de tokens para autenticación

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Obtiene el token de autenticación y la url del producto dado

Handler del GenServer para llamada sincrona para obtener el token de un producto

Handler del GenServer para la llamada asincrona tipo info para token check diario

Callback de inicio del GenServer

Lista todos los tokens guardados

Inicia el GenServer para manejo de la autenticación de Whatsapp

Callback al terminar el GenServer. Hace logout de todos los servicios de Whatsapp guardados

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

get_token_info(product)

get_token_info(binary()) :: binary() | nil

Obtiene el token de autenticación y la url del producto dado

Link to this function

get_tokens_info(providers)

Link to this function

handle_call(msg, from, state)

handle_call(:list, PID, map()) :: {:reply, map(), map()}
handle_call({:lookup_token, binary()}, any(), any()) ::
  {:reply, any(), any()}

Handler del GenServer para llamada sincrona para obtener el token de un producto

Link to this function

handle_info(msg, state)

handle_info(:token_check, any()) :: {:noreply, any()}

Handler del GenServer para la llamada asincrona tipo info para token check diario

Link to this function

init(args)

init(Keyword.t()) :: {:ok, any()}

Callback de inicio del GenServer

Link to this function

list_tokens()

list_tokens() :: list()

Lista todos los tokens guardados

Link to this function

start_link(providers)

start_link(list()) :: any()

Inicia el GenServer para manejo de la autenticación de Whatsapp

Link to this function

terminate(reason, state)

terminate(atom(), map()) :: any()

Callback al terminar el GenServer. Hace logout de todos los servicios de Whatsapp guardados

Link to this function

update_expired_tokens(providers)