ExFirebaseAuth.Mock.generate_token

You're seeing just the function generate_token, go back to ExFirebaseAuth.Mock module for more information.
Link to this function

generate_token(sub, claims \\ %{})

Specs

generate_token(String.t(), map()) :: String.t()

Generates a firebase-like ID token with the mock's private key. Will raise when mock is not enabled.

Examples

iex> ExFirebaseAuth.Mock.generate_token("userid", %{"claim" => "value"})
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjEzMDA4MTkzODAsImh0dHA6Ly9leGFtcGxlLmNvbS9pc19yb290Ijp0cnVlLCJpc3MiOiJqb2UifQ.shLcxOl_HBBsOTvPnskfIlxHUibPN7Y9T4LhPB-iBwM"