Skip to content

Commit

Permalink
feat(auth): OIDC/Lambda Support (aws-amplify#777)
Browse files Browse the repository at this point in the history
* OIDC/Lambda support

* Clean up

* Fix iOS test

* Add unit tests

* Fix Android test

* Fix Android tests

* Refactor and remove AuthToken from the public API

* Remove concurrent guards

* Clean up
  • Loading branch information
dnys1 authored and Noyes committed Oct 8, 2021
1 parent b81d890 commit 90ebf37
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

import Foundation
import Amplify
import AmplifyPlugins
Expand Down Expand Up @@ -44,7 +43,6 @@ class FlutterAuthProviders: APIAuthProviderFactory {
/// A provider which manages token retrieval for its [AWSAuthorizationType].
struct FlutterAuthProvider: AmplifyOIDCAuthProvider, AmplifyFunctionAuthProvider {
let type: AWSAuthorizationType

func getLatestAuthToken() -> Result<String, Error> {
guard let token = FlutterAuthProviders.getToken(for: type) else {
let tokenUnavailable = AuthError.notAuthorized(
Expand Down

0 comments on commit 90ebf37

Please sign in to comment.