Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Instance Method

get(_:)

Look up an instance of the supplied type, if one has been authenticated.
func get<A>(_ type: A.Type = A.self) -> A? where A : Authenticatable

Parameters

type

The authenticatable type to look up

Return Value

An instance of the requested type, if one exists, nil otherwise