Skip to content

Commit

Permalink
Merge pull request #140 from MZ-OFFISSU/feat/sprint-final
Browse files Browse the repository at this point in the history
fix: google oauth bug
  • Loading branch information
Jun99uu authored Sep 18, 2023
2 parents 4f7557e + a60af60 commit 34d98ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion TERMTERM/src/screens/Webview/GoogleLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ const GoogleLogin = ({ navigation }: HomeScreenProps) => {
const authApi = new AuthApi();
const memberApi = new MemberApi();

// Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
const customUserAgent = "customUserAgent";

const logInProgress = (data: any) => {
const startIdx = data.indexOf("code=") + 5;
const endIdx = data.indexOf("&", startIdx);
Expand Down Expand Up @@ -69,7 +72,8 @@ const GoogleLogin = ({ navigation }: HomeScreenProps) => {
onMessage={(event) => {
logInProgress(event.nativeEvent.url);
}}
userAgent="Chrome/56.0.0.0 Mobile"
// userAgent="Chrome/56.0.0.0 Mobile"
userAgent={customUserAgent}
/>
</View>
);
Expand Down

0 comments on commit 34d98ef

Please sign in to comment.