Quality checks
This commit is contained in:
parent
a4e2a688c3
commit
cef1691e53
2 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ class OidcUrlParser {
|
||||||
// On success, we get:
|
// On success, we get:
|
||||||
// `io.element:/callback?state=IFF1UETGye2ZA8pO&code=y6X1GZeqA3xxOWcTeShgv8nkgFJXyzWB`
|
// `io.element:/callback?state=IFF1UETGye2ZA8pO&code=y6X1GZeqA3xxOWcTeShgv8nkgFJXyzWB`
|
||||||
/**
|
/**
|
||||||
* Return a OidcAction, or null if the url is not a OidcUrl
|
* Return a OidcAction, or null if the url is not a OidcUrl.
|
||||||
*/
|
*/
|
||||||
fun parse(url: String): OidcAction? {
|
fun parse(url: String): OidcAction? {
|
||||||
if (url.startsWith(OidcConfig.redirectUri).not()) return null
|
if (url.startsWith(OidcConfig.redirectUri).not()) return null
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ fun OidcView(
|
||||||
|
|
||||||
Box(modifier = modifier.statusBarsPadding()) {
|
Box(modifier = modifier.statusBarsPadding()) {
|
||||||
AndroidView(
|
AndroidView(
|
||||||
modifier = modifier
|
modifier = Modifier
|
||||||
.statusBarsPadding(),
|
.statusBarsPadding(),
|
||||||
factory = { context ->
|
factory = { context ->
|
||||||
WebView(context).apply {
|
WebView(context).apply {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue