File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ async fn main() {
1111 . await
1212 . unwrap ( ) ;
1313
14- let live_cookie_validator = live_app. cookie_token_verifier ( ) . unwrap ( ) ;
14+ let live_cookie_validator = live_app. cookie_token_verifier ( ) . await . unwrap ( ) ;
1515
1616 live_cookie_validator. validate ( & cookie) . await . unwrap ( ) ;
1717}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ async fn main() {
1717 // Live
1818 let oidc_token = std:: env:: var ( "ID_TOKEN" ) . unwrap ( ) ;
1919 let live_app = App :: live ( ) . await . unwrap ( ) ;
20- let live_token_validator = live_app. id_token_verifier ( ) . unwrap ( ) ;
20+ let live_token_validator = live_app. id_token_verifier ( ) . await . unwrap ( ) ;
2121 verify_token ( & oidc_token, & live_token_validator) . await ;
2222
2323 // Emulator
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ impl App<AccessTokenCredentials> {
9898
9999 /// Create OIDC token verifier
100100 #[ cfg( feature = "tokens" ) ]
101- pub fn id_token_verifier (
101+ pub async fn id_token_verifier (
102102 & self ,
103103 ) -> Result < impl jwt:: TokenValidator , Report < credentials:: GCPCredentialsError > > {
104104 jwt:: LiveValidator :: new_jwt_validator ( self . project_id . clone ( ) )
@@ -107,7 +107,7 @@ impl App<AccessTokenCredentials> {
107107
108108 // /// Create cookie token verifier
109109 #[ cfg( feature = "tokens" ) ]
110- pub fn cookie_token_verifier (
110+ pub async fn cookie_token_verifier (
111111 & self ,
112112 ) -> Result < impl jwt:: TokenValidator , Report < credentials:: GCPCredentialsError > > {
113113 jwt:: LiveValidator :: new_cookie_validator ( self . project_id . clone ( ) )
You can’t perform that action at this time.
0 commit comments