anchor.diff:  access_token(_) ->
       {error, not_set}.
   
  +set_scope_if_empty(#user_info{token_info=TokenInfo, scope= ScopeMap} = Info) ->
  +    case maps:is_key(scope, ScopeMap) of
  +        true ->
  +            Info;
  +        false ->
  +            Empty = #{scope => <<"">>, list => []},
  +            Info#user_info{scope = maps:get(scope, TokenInfo, Empty)}
  +    end.
   
   update_plugin_info(#user_info{id_info=IdInfo, id_token=IdToken,
                                 token_info=TokenInfo,
  -                              issuer=Issuer, subject=Subject} = UserInfo) ->
  +                              issuer=Issuer, subject=Subject,
  +                              scope= ScopeMap
  +                             } = UserInfo) ->
       RemoveClaims = [aud, exp, nbf, iat, jti, azp, kid, aud, auth_time, at_hash,
                       c_hash],
       ReducedClaims = maps:without(RemoveClaims, maps:get(claims, IdToken, #{})),
       RemoveTokenInfo = [active, aud, sub, iss, client_id, token_type, exp, iat,
  -                       nbf, jti],
  +                       nbf, jti, scope],
       ReducedTokenInfo = maps:without(RemoveTokenInfo, TokenInfo),
  +    ScopeInfo = case maps:get(scope, ScopeMap, undefined) of
  +                    undefined ->
  +                        #{};
  +                    Scope ->
  +                        ScopeList = maps:get(list, ScopeMap),
  +                        #{scope_list => ScopeList, scope => Scope}
  +                end,
       IssSubUpdate = #{iss => Issuer, sub=> Subject},
       PluginInfo1 = maps:merge(IdInfo, ReducedClaims),
       PluginInfo2 = maps:merge(PluginInfo1, ReducedTokenInfo),
  -    PluginInfo3 = maps:merge(PluginInfo2, IssSubUpdate),
  -    UserInfo#user_info{plugin_info=PluginInfo3}.
  +    PluginInfo3 = maps:merge(PluginInfo2, ScopeInfo),
  +    PluginInfo9 = maps:merge(PluginInfo3, IssSubUpdate),
  +    UserInfo#user_info{plugin_info=PluginInfo9}.
   
   maybe_to_atom(Bin) ->
       try
  
positive.code:           access_token = #{},
            plugin_info = #{},
            token_info = #{},
            additional_logins = []
           }).
  
  new() ->
  
negative.code:                 {ok, Inf4} = update_token_info(TokenInfo, Info3),
                  Inf4
          end,
      Info5 =
          case Scope of
              undefined ->
                  Info4;
              _ ->
                  {ok, Inf5} = update_scope(Scope, Info4),
                  Inf5
          end,
      {ok, Info5}.
  
  
  update_iss_sub(Issuer, Subject,
  