-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: GET /me now returns a providers attribute listing the identity …
…providers user has authenticated with
- Loading branch information
1 parent
03c2ef4
commit 0f29b29
Showing
7 changed files
with
92 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
import * as arc from "@architect/functions" | ||
import userRepositoryFactory from "@architect/shared/architect/oauth/repository/UserRepository" | ||
import tokenRepositoryFactory from "@architect/shared/architect/oauth/repository/TokenRepository" | ||
import meHandlerFactory from "@architect/shared/architect/oauth/handlers/me" | ||
|
||
const handlerImp = meHandlerFactory(userRepositoryFactory()) | ||
const handlerImp = meHandlerFactory( | ||
userRepositoryFactory(), | ||
tokenRepositoryFactory() | ||
) | ||
export const handler = arc.http.async(handlerImp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters