Packages

exBankID is a simple stateless API-client for the Swedish BankID API

Current section

Files

Jump to
exBankID lib ex_bank_id auth.ex
Raw

lib/ex_bank_id/auth.ex

defmodule ExBankID.Auth do
def auth(ip_address, opts)
when is_binary(ip_address) and is_list(opts) do
with payload = %ExBankID.Auth.Payload{} <-
ExBankID.Auth.Payload.new(ip_address, opts) do
ExBankID.HttpRequest.send_request(payload, opts)
end
end
end