From 417085623bd17b7d48ce10f76f7c195786ea60bc Mon Sep 17 00:00:00 2001 From: Igor Toporkov Date: Wed, 12 Feb 2020 15:10:55 +0300 Subject: [PATCH] Allow subject type be undefined --- src/uac_authorizer_jwt.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uac_authorizer_jwt.erl b/src/uac_authorizer_jwt.erl index 75cf4ce..49005dc 100644 --- a/src/uac_authorizer_jwt.erl +++ b/src/uac_authorizer_jwt.erl @@ -29,7 +29,7 @@ -type key() :: #jose_jwk{}. -type token() :: binary(). -type claims() :: #{binary() => term()}. --type subject() :: {subject_id(), uac_acl:t()}. +-type subject() :: {subject_id(), uac_acl:t() | undefined}. -type subject_id() :: binary(). -type t() :: {id(), subject(), claims()}. -type domain_name() :: binary().