@frozen
public enum Credentials : Sendable
Credentials
is an enum representing supported authentication types for Atlas App Services. Example Usage:
let credentials = Credentials.JWT(token: myToken)
Credentials from a Facebook access token.
DeclarationSwift
case facebook(accessToken: String)
Credentials from a Google serverAuthCode.
DeclarationSwift
case google(serverAuthCode: String)
Credentials from a Google idToken.
DeclarationSwift
case googleId(token: String)
Credentials from an Apple id token.
DeclarationSwift
case apple(idToken: String)
Credentials from an email and password.
DeclarationSwift
case emailPassword(email: String, password: String)
Credentials from a JSON Web Token
DeclarationSwift
case jwt(token: String)
Credentials for an Atlas App Services function using a mongodb document as a json payload. If the json can not be successfully serialised and error will be produced and the object will be nil.
Credentials from a user api key.
DeclarationSwift
case userAPIKey(String)
Credentials from a sever api key.
DeclarationSwift
case serverAPIKey(String)
Represents anonymous credentials
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4