Build a Basic CRUD App with Angular 5.0 and Spring Boot 2.0

Vu Nguyen-Cong

I got the same error as Afif. From your guide, I’ve read the 1.0.0 release note and found out that I need to modify the code in src/app/shared/okta/auth.interceptor.ts from

this.oktaAuth.getAccessToken().accessToken

to

await this.oktaAuth.getAccessToken()

But the IDE tells me that I can only use await within an async function. How can I fix this? Thanks.