From 35fd60cb6f36a9c48c060a6cf81806d157fa28d3 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Thu, 15 Dec 2016 12:45:05 -0500 Subject: [PATCH] Avoid exception if team info is not present (#10) --- lib/ueberauth/strategy/slack.ex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ueberauth/strategy/slack.ex b/lib/ueberauth/strategy/slack.ex index 5299bd6..68d94ab 100644 --- a/lib/ueberauth/strategy/slack.ex +++ b/lib/ueberauth/strategy/slack.ex @@ -159,10 +159,10 @@ defmodule Ueberauth.Strategy.Slack do def extra(conn) do %Extra { raw_info: %{ - auth: conn.private.slack_auth, - token: conn.private.slack_token, - user: conn.private.slack_user, - team: conn.private.slack_team + auth: conn.private[:slack_auth], + token: conn.private[:slack_token], + user: conn.private[:slack_user], + team: conn.private[:slack_team] } } end