Skip to content

Commit

Permalink
Fix some doc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-tennert committed Sep 20, 2024
1 parent 62ff6f0 commit c93f09b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ sealed interface Auth : MainPlugin<AuthConfig>, CustomSerializationPlugin {
override val logger: SupabaseLogger = SupabaseClient.createLogger("Supabase-Auth")

/**
* The gotrue api version to use
* The auth api version to use
*/
const val API_VERSION = 1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ open class AuthConfigDefaults : MainConfig() {
var codeVerifierCache: CodeVerifierCache? = null

/**
* The dispatcher used for all gotrue related network requests
* The dispatcher used for all auth related network requests
*/
var coroutineDispatcher: CoroutineDispatcher = Dispatchers.Default

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import io.github.jan.supabase.logging.d
import kotlinx.serialization.json.jsonObject

internal fun noDeeplinkError(arg: String): Nothing = error("""
Trying to use a deeplink as a redirect url, but no deeplink $arg is set in the GoTrueConfig.
If you want to use deep linking, set the scheme and host in the GoTrueConfig:
install(GoTrue) {
Trying to use a deeplink as a redirect url, but no deeplink $arg is set in the AuthConfig.
If you want to use deep linking, set the scheme and host in the AuthConfig:
install(Auth) {
scheme = "YOUR_SCHEME"
host = "YOUR_HOST"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ internal class AuthImpl(
val response = api.postJson("token?grant_type=refresh_token", body) {
headers.remove("Authorization")
}
return response.safeBody("GoTrue#refreshSession")
return response.safeBody("Auth#refreshSession")
}

override suspend fun refreshCurrentSession() {
Expand Down

0 comments on commit c93f09b

Please sign in to comment.