Skip to content

Commit 0ea9c29

Browse files
committed
fix(expo): headers should be retrieved from APIError in OAuth hook
1 parent 909260e commit 0ea9c29

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/expo/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ export const expo = (options?: ExpoOptions) => {
4848
);
4949
},
5050
handler: async (ctx) => {
51-
const headers = ctx.responseHeader;
51+
const headers = ctx.context.returned?.headers as Headers;
52+
53+
if (!headers) {
54+
return;
55+
}
5256

5357
const location = headers.get("location");
5458
if (!location) {

0 commit comments

Comments
 (0)