Commit d9e4184
authored
Fix(google-jvm): Use dynamically found port for redirect URI (#165)
The redirect URI for Google authentication on JVM was previously hardcoded to use port 8080. This change updates the implementation to use the same dynamically discovered available port that the embedded Netty server listens on.
This ensures the `redirect_uri` parameter in the authentication URL matches the actual callback server address, fixing authentication failures that would occur if port 8080 was already in use.1 parent 6f22d60 commit d9e4184
File tree
1 file changed
+6
-3
lines changed- kmpauth-google/src/jvmMain/kotlin/com/mmk/kmpauth/google
1 file changed
+6
-3
lines changedLines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
41 | | - | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
114 | | - | |
115 | | - | |
| 117 | + | |
| 118 | + | |
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
| |||
0 commit comments