Packages

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

Current section

Files

Jump to
exBankID lib ex_bank_id qr.ex
Raw

lib/ex_bank_id/qr.ex

defmodule ExBankID.Qr do
@static_token_prefix "bankid:///?autostarttoken="
def static_qr(%ExBankID.Auth.Response{autoStartToken: token}) do
@static_token_prefix <> token
end
def static_qr(%ExBankID.Sign.Response{autoStartToken: token}) do
@static_token_prefix <> token
end
end