hex logo Hex
Packages Pricing Docs
Log In
Packages Pricing Docs Log In
Packages

auth_plug

0.2.0
1.5.2 1.5.1 1.5.0 1.4.21 1.4.20 1.4.19 1.4.18 1.4.17 1.4.16 1.4.15 1.4.14 1.4.13 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.7 1.3.6 1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.3 1.2.2 1.2.1 1.2.0 1.1.1 1.1.0 1.0.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.5.0 0.4.0 0.3.1 0.3.0 0.2.1 0.2.0 0.1.4 0.1.3 0.1.2 0.1.1 0.1.0

Turnkey Auth Plug lets you protect any route in an Elixir/Phoenix App.

HexDocs

Current section

Files

Jump to
Readme
61 Versions
2 Dependencies
Dependants
Files
Activity
Readme 61 Versions 2 Dependencies Dependants Files Activity
auth_plug lib token.ex
Raw

5 files

  • lib
    • auth_plug.ex
    • token.ex
  • LICENSE
  • README.md
  • mix.exs

    No matching files

    Package files

      No matching files

      lib/token.ex

      defmodule AuthPlug.Token do
      @moduledoc """
      Token module to create and validate jwt.
      see https://hexdocs.pm/joken/configuration.html#module-approach
      """
      use Joken.Config
      @impl true
      def token_config do
      default_claims(default_exp: 31_537_000 ) # ~ 1 year in seconds
      end
      end
      hex logo Hex
      About Blog Sponsors Status Advisories
      Documentation FAQ Specifications Report Client Issue Report General Issue Report Security Issue Contact Support
      Code of Conduct Terms of Service Privacy Policy Copyright Policy Dispute Policy

      Copyright 2015. Six Colors AB.

      Powered by the Erlang VM and the Elixir Programming Language

      Search filters

      Type any of these into the search box. They can be combined with free text which searches package names and descriptions.

      Operator Description Example
      name: Match package name. Supports * wildcards and repo/package form name:phx* or name:hexpm/phoenix
      description: Full-text search of package descriptions description:auth
      depends: Packages depending on a given package. Supports repo:package form depends:ecto or depends:hexpm:ecto
      build_tool: Filter by build tool build_tool:mix
      updated_after: Packages updated after an ISO8601 datetime updated_after:2025-01-01T00:00:00Z
      extra: Match custom metadata (key,value). Nested keys are separated by commas extra:license,MIT

      Wrap values in double quotes to include spaces, e.g. name:"my package".