<img alt="Oak National Academy" src="https://github.com/oaknational/oak-components/assets/122096/3b34c863-ff79-403a-a38e-0c997003909c" width="300" style="margin-bottom: 2rem" />

# Oak Google Classroom Add-on

## Overview

This library contains UI components and API helper functions for the Google Classroom Add-on produced by
[Oak National Academy](https://www.thenational.academy/).


## google-auth-library and @googleapis/classroom versions
These are currently set to specific versions.
```
"@googleapis/classroom": "4.9.0",
"google-auth-library": "9.15.1",
```
The reason for this is that in OWA we are limited to using version 9.15.1 of google-auth-library due to our OIDC 
Firestore connection that is used for the pupil Firestore. At the time of writing, using version 10 of the
google-auth-library causes the OIDC connection to break.

As we are limited to using this version of the google-auth-library it means we must also use an older version of the 
Google Classroom API as the latest version that supports google-auth-library v9 is version 4.9.0.

When google-auth-library v10 is supported in OWA we can upgrade both packages to their latest versions.

There was a [PR in OWA](https://github.com/oaknational/Oak-Web-Application/pull/3819) where we made this change.

This issue has also been noted before in [this thread](https://github.com/vercel/vercel/issues/13811#issuecomment-3256606384) in the Vercel repository. 