D2lvalenceElixir.Auth.D2LUserContext.get_simple_user_context
You're seeing just the function
get_simple_user_context
, go back to D2lvalenceElixir.Auth.D2LUserContext module for more information.
Specs
get_simple_user_context(%D2lvalenceElixir.Auth.D2LUserContext{ anonymous: term(), app_id: term(), app_key: term(), encrypt_requests: term(), host: term(), scheme: term(), server_skew: term(), user_id: String.t(), user_key: String.t() }) :: %{user_id: String.t(), user_key: String.t()}
Takes a full D2LUserContext and returns a map with only the basic information for authentication. This is usefull for Phoenix session storage. You don't send app_id and app_key to the user.