version | 1.0.0 |
license | BSD-3-Clause |
native-modules | False |
elm-version | 0.18.0 <= v < 0.19.0 |
Tag | 1.0.0 |
Committed At | 2016-12-23 14:04:00 UTC |
A helper library for Elm that provides building basic authentication token and header.
Add the import to the module where you need to provide a http basic authentication header.
import BasicAuth
To build a Http.Header use
buildAuthorizationHeader : String -> String -> Http.Header
buildAuthorizationHeader "username" "password"
Or to build just the authentication token string
buildAuthorizationToken : String -> String -> String
buildAuthorizationToken "username" "password"