plug_mishka_auth v0.0.2 MishkaAuth.Extra View Source

Link to this section Summary

Link to this section Functions

Link to this function

get_changeset_error(changeset)

View Source

Specs

get_changeset_error(Ecto.Changeset.t()) :: %{optional(atom()) => [binary()]}
Link to this function

get_github_username(user_profile_url)

View Source

Specs

get_github_username(binary()) :: String.t()

Specs

list_to_map(any()) :: map()
Link to this function

map_to_single_list_with_string_key(params)

View Source

Specs

map_to_single_list_with_string_key(map()) :: [any()]

Specs

plug_request(any()) :: {:error, :plug_request} | {:ok, :plug_request, any()}
Link to this function

plug_request_with_session(plug, type)

View Source

Specs

plug_request_with_session(any(), any()) ::
  {:ok, :plug_request_with_session, any()}

Specs

randstring(integer()) :: binary()
Link to this function

strong_params(params, allowed_fields)

View Source

Specs

strong_params(map(), [any()]) :: map()

Specs

valid_uuid(any()) :: {:error, :valid_uuid} | {:ok, :valid_uuid, <<_::288>>}

this function checks your UUID and pass a map.