Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
noppoMan committed May 31, 2017
1 parent dd6c204 commit 5deab88
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/HexavilleAuthExample/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import HexavilleFramework

let app = HexavilleFramework()

var middleware = HexavilleAuth()
var auth = HexavilleAuth()

let APP_URL = ProcessInfo.processInfo.environment["APP_URL"] ?? "http://localhsot:3000"

Expand Down Expand Up @@ -56,12 +56,12 @@ let instagramProvider = InstagramAuthenticationProvider(
return Response(body: "\(credential)")
}

middleware.add(facebookProvider)
middleware.add(githubProvider)
middleware.add(googleProvider)
middleware.add(instagramProvider)
auth.add(facebookProvider)
auth.add(githubProvider)
auth.add(googleProvider)
auth.add(instagramProvider)

app.use(middleware)
app.use(auth.asRouter())

let router = Router()

Expand Down

0 comments on commit 5deab88

Please sign in to comment.